SHARE
TWEET

Untitled

a guest May 26th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public tank(playerid)
  2. {
  3. new msg[128];
  4. format(msg,sizeof(msg),"Timeris vis dar veikia");
  5. SendMessageToKROVIN(0xFFFFFFFF,msg);
  6. new model = GetVehicleModel(GetPlayerVehicleID(playerid));
  7. if(PlayerToPoint(300, playerid,1992.5983,-2534.8982,25.5079))
  8. {
  9. return 1;
  10. }
  11. if(!IsPlayerInAnyVehicle(playerid))
  12. {
  13. new msgg[128];
  14. KillTimer(tanktimer[playerid]);
  15. format(msgg,sizeof(msgg),"%Kill timeris tanko");
  16. SendMessageToKROVIN(0xFFFFFFFF,msgg);
  17. return 1;
  18. }
  19. if(model != 432)
  20. {
  21. return 1;
  22. }
  23. new string[128],stringx[128];
  24. new tname[MAX_PLAYER_NAME];
  25. GetPlayerName(playerid,tname,sizeof(tname));
  26. playerDB[playerid][zaidejoispe]+=1;
  27. format(string,sizeof(string),"{FF0000}[Serveris]: {FFFFFF}%s(%d) buvo išmestas už netinkama tanko panaudojimą.",tname,playerid);
  28. format(stringx,sizeof(stringx),"{FF0000} Už tai žaidėjas buvo įkalintas 10 000 sekundžių kalėjimo ir gavo žaidėjo įspėjimą %i/10.",playerDB[playerid][zaidejoispe]);
  29. playerDB[playerid][uzdrausta]=true;
  30. playerDB[playerid][kalejimo_laikas] = 10000;
  31. JailPlayer(playerid,227.3138,108.9786,999.0156,0,playerDB[playerid][kalejimo_laikas]*1000,10,-1605.7911,716.2626,12.0286,359.5781,0,true);
  32. playerDB[playerid][ikalintas]=true;
  33. SendClientMessageToAll(0xAA3333AA,string);
  34. SendClientMessageToAll(0xAA3333AA,stringx);
  35. CallRemoteFunction("KickIncrease","d",playerid);
  36. SetTimerEx("KickPublic", 1000, 0, "d", playerid);
  37. return 1;
  38. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top