MistarA

Untitled

Nov 22nd, 2017
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. CMD:faggio(playerid, params[])
  2. {
  3. if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "Trebuie sa fi logat pentru a folosi aceasta comanda");
  4. {
  5. new Float:X,Float:Y,Float:Z;
  6. GetPlayerPos(playerid, X, Y, Z);
  7. new carid = CreateVehicle(462, X,Y,Z, 0.0, -1, -1, -1);
  8. new carid = GetPlayerVehicleID(playerid);
  9. Carspawn[carid] = carid;
  10. PutPlayerInVehicle(playerid, carid, 0);
  11. if(GetPlayerState(playerid) == PLAYER_STATE_EXIT_VEHICLE)
  12. {
  13. Carspawn[carid] = 0;
  14. DestroyVehicle(carid);
  15. }
  16. }
  17. return 1;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment