30.05.2014, 06:57
Acho que assim fica bom, pois envia o aviso do comando para os admins, logo em seguida verifica se o player й VIP, caso for verdade ele continua na estrutura condicional...
pawn Код:
COMMAND:jetpack(playerid, params[])
{
// Send the command to all admins so they can see it
SendAdminText(playerid, "/jetpack", params);
if (!IsPlayerVIP(playerid))
return SendClientMessage(playerid, Default, "[Erro]{FFFFFF} Vocк nгo й vip.");
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// Check if the player's admin-level is at least 3
if (APlayerData[playerid][PlayerLevel] >= 2)
{
// Equip the player with a jetpack
SetPlayerSpecialAction(playerid, 2);
}
else
return 0;
}
else
return 0;
// Let the server know that this was a valid command
return 1;
}