Spawning isn't working?
#1

For some reason, after I login to my new script/server, it'll just make the dialog disappear, and not spawn my character.
Part of the code where it spawnsplayer;
pawn Код:
new string[64];
        format(string, sizeof(string), "~w~Welcome ~n~~y~   %s",GetPlayerNameEx(playerid));
        GameTextForPlayer(playerid, string, 3500, 1);
        format(string, sizeof(string), "SERVER: Welcome %s",GetPlayerNameEx(playerid));
        SendClientMessage(playerid, COLOR_WHITE, string);
        SpawnPlayer(playerid);
        gPlayerLogged[playerid] = 1;
OnPlayerSpawn:
pawn Код:
public OnPlayerSpawn(playerid)
{
    if(PlayerInfo[playerid][pSpawnPoint] == 0)
    {
    Wounded[playerid] = 0;
    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
    SetPlayerPos(playerid,1742.8767,-1863.5521,13.5749);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 0);
    SetPlayerFacingAngle(playerid,0);
    SetPlayerHealth(playerid,100);
    gPlayerLogged[playerid] = 1;
    }
    return 1;
}
What's wrong? I honestly do not know.
Reply


Messages In This Thread
Spawning isn't working? - by EliteApple - 22.04.2013, 22:31
Re: Spawning isn't working? - by jakejohnsonusa - 22.04.2013, 23:14
Re: Spawning isn't working? - by EliteApple - 22.04.2013, 23:53

Forum Jump:


Users browsing this thread: 1 Guest(s)