DrPawn

cp check

Nov 21st, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. if(LPrison[playerid]!= -1)
  2. {
  3. DisablePlayerCheckpoint(playerid);
  4. new rand = random(sizeof(LaufPrison));
  5. if(LPrisonCP[playerid] == rand){rand = random(sizeof(LaufPrison));}
  6. SetPlayerCheckpoint(playerid, LaufPrison[rand][0], LaufPrison[rand][1], LaufPrison[rand][2], 3.5);
  7. PlayerInfo[playerid][pCheckpoint] -=1;LPrisonCP[playerid] =-1;
  8. format(string, sizeof(string), "Du musst noch %d Checkpoints ablaufen", PlayerInfo[playerid][pCheckpoint]);
  9. SendClientMessage(playerid,COLOR_LIGHTBLUE,string);return 1;
  10. }
  11.  
  12. else if(PlayerInfo[playerid][pCheckpoint] == 1)
  13. {
  14. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Du hast alle Checkpoints abgelaufen. Nun bist du Frei!");
  15. GameTextForPlayer(playerid, "~g~Du bist frei", 5000, 3);
  16. SetPlayerVirtualWorld(playerid, 0);
  17. SetPlayerPos(playerid, 91.9112,1920.7303,17.9953);
  18. SetPlayerWorldBounds(playerid,20000.0000,-20000.0000,20000.0000,-20000.0000); //Reset world to player
  19. PlayerInfo[playerid][pDead] = 0;
  20. PlayerInfo[playerid][pCheckpoint]=0;return 1;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment