Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:respawnallcars(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- for(new i=0;i<FLASBINGPROST+1;i++)
- {
- if(IsVehicleOccupied(i) == 0)
- {
- SetVehicleToRespawn(i);
- EngineStatus[i] = 0;
- GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(i,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective );
- }
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "AdmCmd: Toate masinile nefolosite au fost respawnate de catre %s", sendername);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Nu esti autorizat sa folosesti comanda!");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment