If player is RCON admin, give jetpack.
#5

Quote:
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;
}
You wrong. This will be, you logged RCON and typing /jetpack, then you get You can't use this command!

Код:
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;
}
Reply


Messages In This Thread
If player is RCON admin, give jetpack. - by Ihsan_Cingisiz - 26.05.2010, 18:30
Re: If player is RCON admin, give jetpack. - by Backwardsman97 - 26.05.2010, 18:30
Re: If player is RCON admin, give jetpack. - by Bomber - 26.05.2010, 18:36
Re: If player is RCON admin, give jetpack. - by NewTorran - 26.05.2010, 18:52
Re: If player is RCON admin, give jetpack. - by Mechscape - 26.05.2010, 19:34
Re: If player is RCON admin, give jetpack. - by Bomber - 26.05.2010, 19:49
Re: If player is RCON admin, give jetpack. - by Mechscape - 26.05.2010, 20:02
Re: If player is RCON admin, give jetpack. - by Lewwy - 26.05.2010, 20:34
Re: If player is RCON admin, give jetpack. - by bartje01 - 26.05.2010, 20:36
Re: If player is RCON admin, give jetpack. - by Bomber - 26.05.2010, 21:38

Forum Jump:


Users browsing this thread: 2 Guest(s)