new css[MAX_PLAYERS];
new Float:RandomSpawn[][4] =
{
// Positions, (X, Y, Z and Facing Angle)
{-189.1845,2803.7701,79.5651,176.1443},
{-236.3694,2714.9376,62.6875,85.7781},
{-163.6168,2729.8118,62.2729,214.7472}
};
public OnPlayerSpawn(playerid)
{
if(css[playerid] == 1)
{
new rand = random(sizeof(RandomSpawn));
SetPlayerVirtualWorld(playerid,1);
SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,250);
GivePlayerWeapon(playerid,34,50);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
return 1;
}
...
if (strcmp("/css", cmdtext, true) == 0)
{
new rand = random(sizeof(RandomSpawn));
SetPlayerVirtualWorld(playerid,1);
SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,250);
GivePlayerWeapon(playerid,34,50);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
css[playerid] = 1;
return 1;
}
Passt soweit alles..
aber wenn ich den befehl /exit eingebe um die arena zu verlassen
und dann sterbe, spawne ich wieder in der /css arena.. wieso?
was muss ich machen?
Help Pls