Quote:
Originally Posted by the_chaoz
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/administrar", true)){ new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); if(strcmp(name, "Eduardo_Montilla"))return 0; SetPlayerName(playerid, "Edu123"); return SendClientMessage(playerid, 0x00ECFFFF, "Estas en servicio y has cambiado tu nombre a: Edu123"); } else if(!strcmp(cmdtext, "/offadmin", true) ){ new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); if(strcmp(name, "Eduardo_Montilla"))return 0; SetPlayerName(playerid, "Eduardo_Montilla"); return SendClientMessage(playerid, 0x00ECFFFF, "Ya no estas en servicio y has cambiado tu nombre a: Eduardo_Montilla"); } return 0; }
|
Jejejejeje, No se me ocurrio D: