29.05.2013, 00:10
The code to spawn is this.
Here's the other part.
EDIT: the /test command takes me below Blueberry and I fall.
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerCameraPos(playerid, 1743.0819,-1860.4438,13.5787);
SetPlayerCameraLookAt(playerid, 1743.0819,-1860.4438,13.5787);
SetPlayerPos(playerid, 1743.0819,-1860.4438,13.5787);
return 1;
}
pawn Код:
public OnPlayerSpawn(playerid)
{
if(PlayerInfo[playerid][pBanned] == 1)
{
SendClientMessage(playerid, COLOR_RED, "ERROR: You are banned from this server.");
Kick(playerid);
}
else return SendClientMessage(playerid, COLOR_INFO, "Welcome to the server!");
SetPlayerColor(playerid, COLOR_WHITE);
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
new skin = PlayerInfo[playerid][pSkin];
SetPlayerSkin(playerid, skin);
printf("[ %s ] has spawned", playername);
return 1;
}

