26.05.2010, 18:30
How can i do a if(strcmp......
/jetpack for if player is admin?
Who can make the script for me?
/jetpack for if player is admin?
Who can make the script for me?
if(strcmp(cmd, "/jetpack", true) == 0) {
if(IsPlayerAdmin(playerid))
{
SendClientMessage(playerid,0xFF0000AA,"You can't use this command.");
return 1;
}
SendClientMessage(playerid, 0xFF7F50AA, "You have jetpack now!");
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
return 1;
}
if(strcmp(cmd, "/jetpack", true) == 0) {
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000AA,"You can't use this command.");
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK); SendClientMessage(playerid, 0xFF7F50AA, "You have jetpack now!");
return 1;
}
Originally Posted by Bomba || ❶❸❸❼
pawn Код:
|
if(strcmp(cmd, "/jetpack", true) == 0) { if(!IsPlayerAdmin(playerid)) { SendClientMessage(playerid,0xFF0000AA,"You can't use this command."); return 1; } SendClientMessage(playerid, 0xFF7F50AA, "You have jetpack now!"); SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK); return 1; }
Originally Posted by Bomba || ❶❸❸❼
No, you wrong, test it.
|
if(strcmp(cmd, "/jetpack", true) == 0) { if(!IsPlayerAdmin(playerid)) { SendClientMessage(playerid,0xFF0000AA,"You can't use this command."); return 1; } SendClientMessage(playerid, 0xFF7F50AA, "You have jetpack now!"); SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK); return 1; }
Originally Posted by Bomba || ❶❸❸❼
No, you wrong, test it.
|