weapons command
#3

Код:
Код:
dcmd_giveweapon(playerid,params[])
{
new Index, tmp[300], tmp2[300];
tmp2 = strtok(params,Index);
tmp = strtok(params,Index);
new wpnid = strval(tmp);
new pid = strval(tmp2);
if(wpnid > 38) return SendClientMessage(playerid,0xE60000FF,"Invalid Weapon...");
GivePlayerWeapon(pid,wpnid,1000);
new string[256], wname[90];
GetWeaponName(wpnid,wname,90);
format(string, sizeof(string), "You Recieved a %s",wname);
SendClientMessage(pid,0xE60000FF,string);
return 1;
}
just wrote it for ya ;)
Reply


Messages In This Thread
weapons command - by NinjaKillS - 14.06.2009, 20:56
Re: weapons command - by efeX - 14.06.2009, 21:37
Re: weapons command - by CJ101 - 14.06.2009, 21:49
Re: weapons command - by NinjaKillS - 14.06.2009, 22:13

Forum Jump:


Users browsing this thread: 1 Guest(s)