22.05.2011, 19:01
pawn Код:
new bool:kUso[MAX_PLAYERS];
CMD:teste( playerid, params[])
{
#pragma unused params
if( kUso[ playerid ] == 0 )
{
if(!IsPlayerLuxAdminLevel(playerid,1)) return SendClientMessage(playerid,0xC9170EFF,"[ERROR]{FFFFFF} : Vocк nгo й Um Administrador");
SetPlayerHealth( playerid, 100000 );
kUso[ playerid ] = 1;
return 1;
}
if( kUso[ playerid ] == 1 )
{
if(!IsPlayerLuxAdminLevel(playerid,1)) return SendClientMessage(playerid,0xC9170EFF,"[ERROR]{FFFFFF} : Vocк nгo й Um Administrador");
SetPlayerHealth( playerid, 100 );
kUso[ playerid ] = 0;
return 1;
}
return true;
}
usas assim.