OnPlayerSpawn Help! [+1 Rep]
#4

just use '||' and repeat the same strcmp function.
example.
PHP код:
public OnPlayerConnect(playerid)
{
    new 
pName[MAX_PLAYER_NAME]; //Player name's variable.
    
GetPlayerName(playeridpNamesizeof(pName))
    if(!
strcmp(pName"John"true) || !strcmp(pName"Demi"true)) // Checking if the name matches 'John' or 'Demi'
    
{
        
SetPlayerPos(playerid0010); //Put the cords here, Just example.
    
}
    return 
1;

Reply


Messages In This Thread
OnPlayerSpawn Help! [+1 Rep] - by ChristolisTV - 11.11.2015, 18:57
Re: OnPlayerSpawn Help! [+1 Rep] - by iKarim - 11.11.2015, 19:03
Re: OnPlayerSpawn Help! [+1 Rep] - by ChristolisTV - 11.11.2015, 19:06
Re: OnPlayerSpawn Help! [+1 Rep] - by iKarim - 11.11.2015, 19:18

Forum Jump:


Users browsing this thread: 4 Guest(s)