Release [FIXED]Jetpack Via Rcon

lorenzots5

Utente Esperto
Autore del topic
14 Dicembre 2009
1.048
0
Miglior risposta
0
HTML:
Perfavore, Entra oppure Registrati per vedere i codici!
Da mettere sotto OnPlayerCommandText

if (strcmp("/ajetpack", cmdtext, true, 10) == 0)

{
if(IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, 0x0000ff00, "Adesso hai un Jetpack!");
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
new nome[MAX_PLAYER_NAME], string [100];
GetPlayerName(playerid,nome,sizeof(nome));
format(string, sizeof(string), "[ADMIN]%s ha ottenuto un Jetpack",nome);
SendClientMessageToAll(0xFF7F50AA,string);
return 1;
}
SendClientMessage(playerid, 0xFF7F50AA, "Non hai i permessi per accedere a questo comando!");
return 1;
}
if (strcmp("/arjp", cmdtext, true, 10) == 0)
if(IsPlayerAdmin(playerid))
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
SendClientMessage(playerid, 0x0000ff00, "Jetpack rimosso!");
return 1;
}

//Scripted by Lorenzo Vulcan

Perchè le special action le divide e può dare errori,copiate questo.

Ecco la versione per i livelli admin(Grazie a c1b3r):

Codice:
Perfavore, Entra oppure Registrati per vedere i codici!
 
Ultima modifica:
Riferimento: [FIXED]Jetpack Via Rcon

Posta anche la parte che permette di usare il Jetpack agli Admin senza Rcon
Codice:
Perfavore, Entra oppure Registrati per vedere i codici!
 
Ultima modifica: