10.05.2008, 18:55
One little command /disarm id please?
Thx.
Thx.
Originally Posted by SilentHuntR
um... oh! wait wait...
|
Originally Posted by SilentHuntR
um... oh! wait wait...
|
new cmd[256];
new tmp, giveplayerid, idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/disarm", true) == 0)
{
if(!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, COLOR_WHITE, "You must be admin.");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /disarm (id)");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerConnected(giveplayerid)
{
SendClientMessage(playerid, COLOR_WHITE, "Inactive player ID.");
return 1;
}
else if(IsPlayerConnected(giveplayerid)
{
ResetPlayerWeapons(giveplayerid);
return 1;
}
}
Originally Posted by -Seif-
Corrected version:
pawn Код:
|
Originally Posted by Seif_
Corrected version:
pawn Код:
|