17.10.2010, 21:40
Tenta assim :
Код:
new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
new Pip[128];
GetPlayerName(playerid, pname, sizeof(pname));
GetPlayerIp(playerid, Pip, sizeof(Pip));
if(strcmp(Pip, "192.168.1.100"))//isso eh pq to tendo q usar o samp_debug
{
SetPlayerName(playerid, "[BP]BiieL");
}
new namestring = strfind(pname, "[BP]", true);
if(namestring == -1)
{
SendClientMessage(playerid, COLOR_YELLOW, "Sу administradores usam o Nick com [BP]. Por favor retire o [BP] !");
Kick(playerid);
return 1;
}
format(string, sizeof(string), "%s has joined the Base Jumping Server", pname);
SendClientMessageToAll(AZUL, string);
SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
//daqui pra frente й sу do registro
