09.03.2011, 11:10
Quote:
|
Hopefully this should be an easy enough script, but I want a set spawn point for people with specific names.
So, for example. Код:
public OnPlayerSpawn(playerid)
{
if(playerid = "WizardCM") {
SetPlayerPos(playerid,0.0,0.0,6.0)
}
Any help is greatly appreciated! |
pawn Код:
public OnPlayerSpawn(playerid)
{
new
name[MAX_PLAYER_NAME];
if(strcmp(name, "WizardCM", false) == 0) {
SetPlayerPos(playerid,0.0,0.0,6.0);
} else if(strcmp(name, "Nic_Cramer", false) == 0) {
SetPlayerPos(playerid,0.0,0.0,6.0);
} else {
//For all others
SetPlayerPos(playerid,0.0,0.0,6.0);
}
}


