MistarA

Untitled

Jul 11th, 2019
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. CMD:respawnallcars(playerid, params[])
  2. {
  3. if(PlayerInfo[playerid][pAdmin] >= 1)
  4. {
  5. for(new i=0;i<FLASBINGPROST+1;i++)
  6. {
  7. if(IsVehicleOccupied(i) == 0)
  8. {
  9. SetVehicleToRespawn(i);
  10. EngineStatus[i] = 0;
  11. GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
  12. SetVehicleParamsEx(i,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective );
  13. }
  14. }
  15. GetPlayerName(playerid, sendername, sizeof(sendername));
  16. format(string, sizeof(string), "AdmCmd: Toate masinile nefolosite au fost respawnate de catre %s", sendername);
  17. SendClientMessageToAll(COLOR_LIGHTRED, string);
  18. }
  19. else
  20. {
  21. SendClientMessage(playerid, COLOR_GREY, "Nu esti autorizat sa folosesti comanda!");
  22. }
  23. return 1;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment