Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(LPrison[playerid]!= -1)
- {
- DisablePlayerCheckpoint(playerid);
- new rand = random(sizeof(LaufPrison));
- if(LPrisonCP[playerid] == rand){rand = random(sizeof(LaufPrison));}
- SetPlayerCheckpoint(playerid, LaufPrison[rand][0], LaufPrison[rand][1], LaufPrison[rand][2], 3.5);
- PlayerInfo[playerid][pCheckpoint] -=1;LPrisonCP[playerid] =-1;
- format(string, sizeof(string), "Du musst noch %d Checkpoints ablaufen", PlayerInfo[playerid][pCheckpoint]);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);return 1;
- }
- else if(PlayerInfo[playerid][pCheckpoint] == 1)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Du hast alle Checkpoints abgelaufen. Nun bist du Frei!");
- GameTextForPlayer(playerid, "~g~Du bist frei", 5000, 3);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerPos(playerid, 91.9112,1920.7303,17.9953);
- SetPlayerWorldBounds(playerid,20000.0000,-20000.0000,20000.0000,-20000.0000); //Reset world to player
- PlayerInfo[playerid][pDead] = 0;
- PlayerInfo[playerid][pCheckpoint]=0;return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment