02.04.2013, 10:34
Hello,
I'm working on a Counter Strike Gamemode.
Well, I'm a little bit confused.
I'm spawning the player, on OnplayerDeath.
But it still Returns to ClassSelection.
Anybody can help me out?
this is the OnPlayerDeath Public.
I'm working on a Counter Strike Gamemode.
Well, I'm a little bit confused.
I'm spawning the player, on OnplayerDeath.
But it still Returns to ClassSelection.
Anybody can help me out?
this is the OnPlayerDeath Public.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
PlayerInfo[killerid][pKills]++;
PlayerInfo[playerid][pDeaths]++;
if(PlayerInfo[playerid][pTeam] == 1)
{
SetSpawnInfo( playerid, 0, 294, 195.5586,427.2332,12.7379,93.6763, 0, 0, 0, 0, 24, 50);
SpawnPlayer(playerid);
}
else if(PlayerInfo[playerid][pTeam] == 2)
{
SetSpawnInfo( playerid, 0, 285, 49.1121,423.5605,12.7379,266.2521, 0, 0, 0, 0, 24, 50);
SpawnPlayer(playerid);
}
return 1;
}