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