06.04.2013, 16:45
pawn Код:
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
if(playername == "NameHere")
{
Variable[playerid] = 1;
}
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
if(playername == "NameHere")
{
Variable[playerid] = 1;
}
if(!strcmp(playerName,"NameHere"))// case senstiive { //means they both match, can be here too when one of those string are empty }