SA-MP Forums Archive
Problem with the spawn - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with the spawn (/showthread.php?tid=328049)



Problem with the spawn - Face9000 - 23.03.2012

Hello,today,in the testing of my gamemode,i found a big problem,the spawn.

When i spawn,it look like this:

http://s9.postimage.org/f6phbtgku/sa_mp_000.jpg

As you can see from the screen,everything is hidden,what's happening?This is OnPlayerSpawn:

pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerHealth(playerid, 90);

    IsSpawned[playerid] =1;
    IsRobbing[playerid] =0;
    zoneupdates[playerid] = 1;
    player_zone[playerid] = -1;
    if(!zoneupdate) zoneupdate = SetTimer("update_zones",1000,4);
    SetPlayerToTeamColour(playerid);
    if(gTeam[playerid] == TEAM_COP)
    {
    new plwl = GetPlayerWantedLevel(playerid);
    plwl = GetPlayerWantedLevel(playerid);
    SetPlayerWantedLevel(playerid,plwl +0);
    GiveCopWeps(playerid);
    SendClientMessage(playerid, COLOR_BLUE, "You are a cop now.See /help for more info and /cmds.");
    SendClientMessage(playerid, COLOR_BLUE, "Your job is to arrest criminals.Do NOT kill other COPS or CIVILIANS,you are the LAW,respect it and give the good example.");
    }
    else if(gTeam[playerid] == TEAM_CIV)
    {
    SendClientMessage(playerid, COLOR_WHITE, "You are a civilian now.Your job is to rob players,stores and much more.Check /help for more info and /cmds.");
    SendClientMessage(playerid, COLOR_WHITE, "Please remember: This is NOT a deathmatch server,don't kill people randomly or you will be arrested or in extreme cases,killed.");
    }
    return 1;
}



Re: Problem with the spawn - Allu - 23.03.2012

Is your spawn point in some interior?


Re: Problem with the spawn - Face9000 - 23.03.2012

Quote:
Originally Posted by Allu
Посмотреть сообщение
Is your spawn point in some interior?
No..