Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/agarer", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:x,Float:y,Float:z;
- new Float:a;
- new carid;
- carid = GetPlayerVehicleID(playerid);
- GetPlayerName(playerid, playername, sizeof(playername));
- GetVehiclePos(carid, x, y, z);
- // GetPlayerFacingAngle(playerid, a);
- GetVehicleZAngle(carid, a);
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- CarInfo[carid][cLocationx] = x;
- CarInfo[carid][cLocationy] = y;
- CarInfo[carid][cLocationz] = z;
- CarInfo[carid][cAngle] = a;
- format(string, sizeof(string), "~n~ Vous avez garer ce vehicule a cette position. ~n~");
- GameTextForPlayer(playerid, "Vous avez garer ce vehicule a cette position. Il reaparetra ici.", 10000, 3);
- OnPropUpdate();
- OnPlayerUpdate(playerid);
- DestroyVehicle(carid);
- CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);
- return 1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement