- เครดิต
- 41
- ความรู้
-
- เงิน $
-
- ความดี
-
|
if(strcmp(cmd, "/givegunev", true) == 0) // By Supharongz
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Usage: /givegunev [gunid] [ammo]");
return 1;
}
new gun;
new ammo;
tmp = strtok(cmdtext, idx);
gun = strval(tmp);
tmp = strtok(cmdtext, idx);
ammo = strval(tmp);
if(PlayerInfo[playerid][pAdmin] >= 4)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(eventgo[playerid] == 1)
{
GivePlayerWeapon(i, gun, ammo);
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " ไม่ใช่แอดมินจะกดไมคับ");
}
}
return 1;
} |
|