25.10.2010, 14:34
I want it so it send a message to player if thay are not in the team that can only use it..
This does nothing..
Any Help
Код:
if(!strcmp(cmdtext,"/rpg",true)) if(gTeam[playerid] != CLASS_MERC) { weptimer[playerid] =120; if(weptimer[playerid]) return SendClientMessage(playerid,RED,"[ATT]:Please Wait Before Using This Command Again!"); GivePlayerWeapon(playerid, 35, 50); SendClientMessage(playerid, RED, "[ATT]: RPG Recieved With 50 Rockets!"); return 1; }
Код:
if(!strcmp(cmdtext,"/rpg",true)) if(gTeam[playerid] != CLASS_MERC) { weptimer[playerid] =120; if(weptimer[playerid]) return SendClientMessage(playerid,RED,"[ATT]:Please Wait Before Using This Command Again!"); GivePlayerWeapon(playerid, 35, 50); SendClientMessage(playerid, RED, "[ATT]: RPG Recieved With 50 Rockets!"); else SendClientMessage(playerid, RED, "[ATT]: You Cant Use This Command!");//Addition return 1; }