23.03.2012, 16:25
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:
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;
}