Raised This Month: $12 Target: $400
 3% 

Showing results 1 to 25 of 115
Search took 0.03 seconds.
Search: Posts Made By: Waleed
Forum: Scripting Help 08-14-2012, 10:53
Replies: 9
Views: 1,590
Posted By Waleed
Re: Returning Server's name instead of Player name

Can you tell me what's wrong So I can look at func wiki knowing my mistake.
Forum: Scripting Help 08-14-2012, 10:02
Replies: 9
Views: 1,590
Posted By Waleed
Returning Server's name instead of Player name

Hey Guys, I am back after few months, I was working in PHP. I forgot allot of things in SMALL. Here I am trying to get the name of the player who has died. But There is some problem in it. In game,...
Forum: Scripting Help 08-14-2012, 07:51
Replies: 21
Views: 5,079
Posted By Waleed
Re: Get file modification time

Why don't use PERL to clean logs.Use it as a server-side script, Let it access the directory then clean according to $interval time.It should work fine.
Forum: Scripting Help 08-14-2012, 07:05
Replies: 5
Views: 1,517
Posted By Waleed
Re: set_user_time can do that?

I think this should work

static cell AMX_NATIVE_CALL set_user_time(AMX *amx, cell *params) /* set_user_time(id,time) 0-all, seconds*/
{
int index = params[1];
if...
Forum: Scripting Help 08-14-2012, 06:07
Replies: 1
Views: 784
Posted By Waleed
Registering Events

Hey there,I need to know more about events.

Syntax:
register_event ( const event[], const function[], const flags[], [ cond=[], ... ] )

Example:
register_event("DeathMsg", "hook_death", "a",...
Forum: Scripting Help 08-11-2012, 06:53
Replies: 6
Views: 1,232
Posted By Waleed
Re: How to let others to download the hud.txt file.

Try Precaching the hud.txt and that SPR.By Precaching, I think it will be download to clients...
I hope that helps.
Thnx.
Forum: Scripting Help 08-11-2012, 04:27
Replies: 3
Views: 811
Posted By Waleed
SQL Support

Hey there, I need a little help with SQL.

Basically this is my SQL.cfg file:

amx_sql_host "127.0.0.1"
amx_sql_user "root"
amx_sql_pass ""
amx_sql_db "amx"
amx_sql_table "admins"...
Forum: Scripting Help 06-27-2012, 11:25
Replies: 14
Views: 5,596
Posted By Waleed
Re: how to get server name,map,player

To get player name:

new name[32];
get_user_name(id,name,charsmax(name)) // You got the player name here

I think same method will be used to get map name:

new mapname[32];...
Forum: Scripting Help 06-27-2012, 06:30
Replies: 8
Views: 1,293
Posted By Waleed
Re: Freeze player body when die

What do you mean by that?
If a player dies,His body will be lying on the floor i.e He is already froze at the spot.
Do you want to disable spectating for him after he dies and freeze his view at...
Forum: Scripting Help 06-27-2012, 06:25
Replies: 10
Views: 1,488
Posted By Waleed
Re: Changing models & skins

How am I going to display it by /giveme command o_0?
I want the normal skin,But on /giveme I want to show precached skin
Forum: Scripting Help 06-26-2012, 18:02
Replies: 10
Views: 1,488
Posted By Waleed
Re: Changing models & skins

I have read Pawn Picture Tutorial many times.
But,Thanks for the Fakemeta General Usage tutorial,Let see What I learn from that o_O :D
Forum: Scripting Help 06-26-2012, 17:42
Replies: 10
Views: 1,488
Posted By Waleed
Re: Changing models & skins

Can I use fw_FM_SetModel instead of _FM_SetModel o_O?
What is pev and equali o_O? Where can I use them?
Forum: Scripting Help 06-26-2012, 16:57
Replies: 10
Views: 1,488
Posted By Waleed
Re: Changing models & skins

I found this on wiki,How can I hook this ?
FM_SetModel, // void ) (ent, const szModel[])

I tried this:

FM_SetModel(ent,"MyModel")

It gave me following error:

Error: Invalid function...
Forum: Scripting Help 06-26-2012, 14:28
Replies: 7
Views: 2,179
Posted By Waleed
Re: Auto join spect

After client_connect(id) or client_putinserver(id) // whichever works for you.
You can use this:
cs_set_user_team(id,CS_TEAM_SPECTATOR ) //Changing team to Spectator.

I think that after...
Forum: Scripting Help 06-26-2012, 13:05
Replies: 10
Views: 1,488
Posted By Waleed
Re: Changing models & skins

Here you go,
#include <amxmodx>

new CustomWeaponHere[] = "models/CustomWeaponHere.mdl"

public plugin_precache()
{
precache_model(CustomWeaponHere)
}
Forum: Scripting Help 06-26-2012, 12:46
Replies: 10
Views: 1,488
Posted By Waleed
Changing models & skins

Hey there,I wanna ask how can I change the model of weapons using client command.
For Example: If clients types in "/giveme" then he would get few stuff + there weapon models or skins will also be...
Forum: Scripting Help 06-24-2012, 05:27
Replies: 4
Views: 1,116
Posted By Waleed
Re: Need Advise/Suggestions for Plugins

@ConnorMcLeod: Thanks for that,Deaths were set to 0 but I had to respawn again to change frags to 0 :) ,that should work good
@Pokemonmaster: Thanks for your advise,I will change it.

Edit:By the...
Forum: Scripting Help 06-23-2012, 15:58
Replies: 10
Views: 3,809
Posted By Waleed
Re: get_user_name ?

To find what natives or constants you need use AMX Wiki ---> http://www.amxmodx.org/funcwiki.php <---
Google is good for searching but AMX Wiki would be faster and easier to get info on modules and...
Forum: Scripting Help 06-23-2012, 15:36
Replies: 10
Views: 3,809
Posted By Waleed
Re: get_user_name ?

To get user name use this method:

new name[32]
get_user_name(id,name,charsmax(name) // Getting name here
client_print(id,print_chat," Your name is %s",name) //Chat message to verify

I think ...
Forum: Scripting Help 06-23-2012, 15:26
Replies: 4
Views: 1,116
Posted By Waleed
Need Advise/Suggestions for Plugins

Hey there,I was just practising on this plugin since I am new to scripting.
I made this for my public server for practising only,But I think I need some suggestions from the seniors,
Please suggest...
Forum: Scripting Help 06-21-2012, 16:04
Replies: 13
Views: 2,111
Posted By Waleed
Re: Master Reset

Thanks Liverwiz for correcting pokemonmaster,
Pokemonmaster thanks for code,but still I am NOOB to looping.I will use that after understanding looping completely and trying some other custom tests.
Forum: Scripting Help 06-21-2012, 14:49
Replies: 13
Views: 2,111
Posted By Waleed
Re: Master Reset

I searched wiki about get_players,
Tell me why to use num?
and "h" will skip HLTV,What is HLTV why to skip it?

By the way,I haven't done looping yet since beginning(by myself),Can you explain...
Forum: Scripting Help 06-21-2012, 14:37
Replies: 13
Views: 2,111
Posted By Waleed
Master Reset

Hey there,
I added a small "reset" and "master reset" function in my plugin that resets user deaths and frags,
Reset system is working,Changing the deaths and frags to zero;

public cmd_reset(id)...
Forum: Scripting Help 06-21-2012, 14:29
Replies: 6
Views: 1,583
Posted By Waleed
Re: Delay script with 10 seconds

Just change the set_task to 10 seconds I guess?? O_O
or

#Define wait 0.1 to 10.0

Check if it works
Forum: Scripting Help 06-20-2012, 18:32
Replies: 3
Views: 884
Posted By Waleed
Re: Problem with the script

I,think playerid is not a valid index,It should be id or player.
But,I don't know about GTA Scripting.Try changing index to id.If it work :D
Showing results 1 to 25 of 115

 
Forum Jump

All times are GMT -4. The time now is 15:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode