13.07.2015, 15:49
I put that when a player is spawneaza (if in paintball) to show him the players Markee arena but does not work at all
PHP код:
if(InPaintball[playerid] == 1)
{
SetPlayerVirtualWorld(playerid, 1);
if(PaintballGun == 1) GivePlayerWeapon(playerid, 31, 1000);
else if(PaintballGun == 2) GivePlayerWeapon(playerid, 32, 1000);
else if(PaintballGun == 3) GivePlayerWeapon(playerid, 24, 1000);
else if(PaintballGun == 4) GivePlayerWeapon(playerid, 27, 1000);
new randspawn = random(sizeof(RandomSpawnWar));
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid, RandomSpawnWar[randspawn][0], RandomSpawnWar[randspawn][1], RandomSpawnWar[randspawn][2]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(InPaintball[i] == 1 && IsPlayerConnected(i))
{
SetPlayerMarkerForPlayer( playerid, i, GetPlayerColor(i) );
SetPlayerMarkerForPlayer( i, playerid, GetPlayerColor(playerid) );
}
}
return 1;
}