Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. //ova pod pinfo
  2. pCuff,
  3.  
  4. //ova go stavas koga ce go pustat od zatvor
  5. PlayerInfo[i][pCuff] = 0;
  6.  
  7. //ova go stavas pod koga ce se registrira i ko ce mu zacuvuva
  8. format(var, 64, "Cuff=%d\n",PlayerInfo[playerid][pCuff]);fwrite(hFile, var);
  9.  
  10. //ova pod onplayerlogin
  11. if( strcmp( key , "Cuff" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCuff] = strval( val ); }
  12.  
  13. //ova e ko ce se logira
  14. if(PlayerInfo[playerid][pCuff] == 1)
  15. {
  16. ResetPlayerWeapons(playerid);
  17. PlayerInfo[playerid][pJailed] = 2;
  18. PlayerInfo[playerid][pJailTime] = 600;
  19. SetPlayerInterior(playerid, 0);
  20. new rand = random(sizeof(gRandomJailSpawns));
  21. SetPlayerPos(playerid, gRandomJailSpawns[rand][0], gRandomJailSpawns[rand][1], gRandomJailSpawns[rand][2]);
  22. format(string2, sizeof(string2), "(MW)Server: go zatvori %s 1 cas poradi isklucuvanje na /cuff /tie /tazer",playername2);
  23. SendClientMessageToAll(COLOR_LIGHTRED, string2);
  24. PlayerInfo[playerid][pCuff] = 0;
  25. }
  26.  
  27. //i sega vo komandite kaj so se /cuff /tie /tazer si stavas vakvi ama da ne bidi vo playerid oti tebe ce te friznuva
  28. //treba tamu da bidi nez kako ti se definirani kaj mene se so giveplayerid
  29.  
  30. PlayerInfo[giveplayerid][pCuff] = 1;
  31.  
  32. //i treba ova da go stavis ko ce go /uncuff /untie ili /untazer tamu i netreba da bidi vo playerid oti ce vazi za tebe
  33. // ova vazi i koga ce go pusta od zatvor
  34.  
  35. PlayerInfo[giveplayerid][pCuff] = 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement