Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/park", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new car = GetPlayerVehicleID(playerid);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(car == PlayerInfo[playerid][pCarKey] || strcmp(VehicleInfo[car][vOwner], sendername, true) || PlayerInfo[playerid][pAdmin] >= 4)
- {
- GetPlayerPos(playerid, VehicleInfo[car][vLocationx], VehicleInfo[car][vLocationy], VehicleInfo[car][vLocationz]);
- GetVehicleZAngle(car, VehicleInfo[car][vAngle]);
- DestroyVehicle(car);
- CreateVehicle(VehicleInfo[car][vModel],VehicleInfo[car][vLocationx], VehicleInfo[car][vLocationy], VehicleInfo[car][vLocationz],VehicleInfo[car][vAngle], VehicleInfo[car][vColorOne], VehicleInfo[car][vColorTwo],-1);
- SavePersonalVehicle(car);
- SendClientMessage(playerid, COLOR_WHITE, "Ti-ai parcat masina la pozitia actuala!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu esti in masina pentru a putea folosi comanda!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Nu esti conectat pentru a putea folosi comanda!");
- return 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement