03.03.2019, 19:58
PHP код:
COMMAND:estrelas(playerid, params[])
{
new OtherPlayer, Stars, string[100];
OtherPlayer = strval(params);
SendAdminText(playerid, "/estrelas", params);
if(APlayerData[playerid][LoggedIn] == true){
if(APlayerData[playerid][PlayerLevel] >= 2){
if(sscanf(params, "ui", OtherPlayer, Stars)) return SendClientMessage(playerid, 0xFF0000AA, "Use: /estrelas [id] [nivel]");
if(IsPlayerConnected(OtherPlayer)){
SetPlayerWantedLevel ( playerid, Stars);
format(string, sizeof(string), "Vocк setou as estrelas do id: %i para %i", OtherPlayer, Stars);
SendClientMessage(playerid, -1, string);
}else{
SendClientMessage(playerid, 0xFF0000FF, "{FF0000}Esse jogador nгo estб online.");
}
}
}
return 1;
}