OnPlayerSpawn Help! [+1 Rep]
#3

Quote:
Originally Posted by PawnHunter
Посмотреть сообщение
PHP код:
public OnPlayerConnect(playerid)
{
    new 
pName[MAX_PLAYER_NAME]; //Player name's variable.
    
GetPlayerName(playeridpNamesizeof(pName))
    if(!
strcmp(pName"John"true)) // Checking if the name matches 'John'
    
{
        
SetPlayerPos(playerid0010); //Put the cords here, Just example.
    
}
    return 
1;

OK, thanks but how can i make multiple names to check? (sorry for disturbing..lol)
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: 3 Guest(s)