Advertisement
Gireada

Scaun Fantoma

Apr 8th, 2013
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.95 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3.  
  4. new scaun[MAX_VEHICLES];
  5. new vehicle[MAX_PLAYERS];
  6.  
  7. public OnFilterScriptInit()
  8. {
  9.     print("\n--------------------------------------");
  10.     print(" Scaun Fantoma by Gireada");
  11.     print("--------------------------------------\n");
  12.     return 1;
  13. }
  14.  
  15. public OnFilterScriptExit()
  16. {
  17.     return 1;
  18. }
  19.  
  20. main()
  21. {
  22.     print("\n----------------------------------");
  23.     print(" Scaun Fantoma by Gireada");
  24.     print("----------------------------------\n");
  25. }
  26.  
  27. CMD:scaun(playerid, params[])
  28. {
  29.     new Float:x, Float:y, Float:z;
  30.     GetPlayerPos(playerid, x,y,z);
  31.     vehicle[playerid] = CreateVehicle(471, x, y, z, 0, 0, 1, 999999);
  32.     PutPlayerInVehicle(playerid, vehicle[playerid], 0);
  33.     new vehid = GetPlayerVehicleID(playerid);
  34.     LinkVehicleToInterior(vehid, 1);
  35.     scaun[vehid] = CreateObject(1369, 0.00, 0.00, 0.18,   0.00, 0.00, 180.00);
  36.     AttachObjectToVehicle(scaun[vehid], vehid, 0.00, 0.00, 0.18, 0.00, 0.00, 180.00);
  37.     return 1;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement