Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:car(arg, params[]) {
- new veh_id[32], Float:x, Float:y, Float:z;
- if(sscanf(params, "s[32]", veh_id))
- return SendClientMessage(arg, -1, "Koristi: /car [ (Sultan/Huntley/NRG) ]");
- GetPlayerPos(arg, x, y, z);
- if(AdminVozilo[arg] > 0) {
- DestroyVehicle(AdminVozilo[arg]);
- SendClientMessage(arg, -1, "Unistili ste vase admin vozilo");
- AdminVozilo[arg] = 0;
- return false;
- }
- if(AdminVozilo[arg] == 0) {
- if(strfind(veh_id, "Sultan", true) != -1) {
- AdminVozilo[arg] = CreateVehicle(560, x, y+2, z, 0, -1, -1, 0);
- PutPlayerInVehicle(arg, AdminVozilo[arg], 0);
- SendClientMessage(arg, -1, "Stvorili ste vozilo marke Sultan");
- }
- if(strfind(veh_id, "Huntley", true) != -1) {
- AdminVozilo[arg] = CreateVehicle(579, x, y+2, z, 0, -1, -1, 0);
- PutPlayerInVehicle(arg, AdminVozilo[arg], 0);
- SendClientMessage(arg, -1, "Stvorili ste vozilo marke Huntley");
- }
- if(strfind(veh_id, "NRG", true) != -1) {
- AdminVozilo[arg] = CreateVehicle(522, x, y+2, z, 0, -1, -1, 0);
- PutPlayerInVehicle(arg, AdminVozilo[arg], 0);
- SendClientMessage(arg, -1, "Stvorili ste vozilo marke NRG");
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment