09.05.2012, 08:59
Hello,i've a problem with my gamemode.
I'm using a volt-host test server for testing it,and when i spawn,the server shutdown.
In my localhost it works.
What's wrong?
Here is OnPlayerSpawn:
I've tried all,debugging this callback,removing silly timers but nothing,still shutdown.
The includes/plugins are updated for 0.3e
Please help me fix this annoying problem.
I'm using a volt-host test server for testing it,and when i spawn,the server shutdown.
In my localhost it works.
What's wrong?
Here is OnPlayerSpawn:
pawn Код:
public OnPlayerSpawn(playerid)
{
if(PlayerInfo[playerid][pJailed] == 1)
{
SendClientMessage(playerid,0xFF0000FF,"Welcome,go back in the jail and pay for your crimes.");
new Random = random(sizeof(RandomJailSpawns));
SetPlayerPos(playerid, RandomJailSpawns[Random][0], RandomJailSpawns[Random][1], RandomJailSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomJailSpawns[Random][3]);
}
if(gTeam[playerid] == TEAM_CIV)
{
new Random = random(sizeof(RandomCivSpawns));
SetPlayerPos(playerid, RandomCivSpawns[Random][0], RandomCivSpawns[Random][1], RandomCivSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomCivSpawns[Random][3]);
}
IsRobbing[playerid] =0;
SetPlayerToTeamColour(playerid);
return 1;
}
The includes/plugins are updated for 0.3e
Please help me fix this annoying problem.