public SetPlayerSpawn(playerid) { |
if(PlayerInfo[playerid][pJailed] == 1)
{
if(WantedLevel[playerid] >= 5)
{
SetPlayerWantedLevel(playerid, 0);
SetPlayerInterior(playerid, 0);
rand = random(sizeof(gJailSpawnsArmata));
SetPlayerPos(playerid, gJailSpawnsArmata[rand][0], gJailSpawnsArmata[rand][1], gJailSpawnsArmata[rand][2]); // Warp the player
SendClientMessage(playerid, COLOR_LIGHTRED, "Ai fost arrestat cu wanted 5!si ai fost dus in SF");//edit by u self
return 1;
}
else if(WantedLevel[playerid] < 5)
{
SetPlayerInterior(playerid, 6);
rand = random(sizeof(gJailSpawns));
SetPlayerPos(playerid, gJailSpawns[rand][0], gJailSpawns[rand][1], gJailSpawns[rand][2]); // Warp the player
SetPlayerWantedLevel(playerid, 0);
return 1;
}
}
if(PlayerInfo[playerid][pJailed] == 0)
if(PlayerInfo[playerid][pJailed] == 2) // { SetPlayerInterior(playerid, 0); rand = random(sizeof(gJailSpawns2)); SetPlayerPos(playerid, gJailSpawns2[rand][0], gJailSpawns2[rand][1], gJailSpawns2[rand][2]); return 1; } |
if(PlayerInfo[playerid][pJailed] == 1)
{
switch(WantedLevel[playerid])
{
case 0 .. 4:
{
SetPlayerWantedLevel(playerid, 0);
SetPlayerInterior(playerid, 0);
rand = random(sizeof(gJailSpawnsArmata));
SetPlayerPos(playerid, gJailSpawnsArmata[rand][0], gJailSpawnsArmata[rand][1], gJailSpawnsArmata[rand][2]); // Warp the player
SendClientMessage(playerid, COLOR_LIGHTRED, "Ai fost arrestat cu wanted 5!si ai fost dus in SF");//edit by u self
return 1;
}
case 5..20://change 20 to the max wanted level.
{
SetPlayerInterior(playerid, 6);
rand = random(sizeof(gJailSpawns));
SetPlayerPos(playerid, gJailSpawns[rand][0], gJailSpawns[rand][1], gJailSpawns[rand][2]); // Warp the player
SetPlayerWantedLevel(playerid, 0);
return 1;
}
}
return 1;
}
pawn Код:
|
and this doesent have if wanted level bigger then 5 to send me there and if smaller to send me somewhere else..
|
case 5..20://change 20 to the max wanted level. |