MrmirvC

elegy

Oct 17th, 2016
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.15 KB | None | 0 0
  1.     if(dialogid == Auto)
  2.     {
  3.         switch(listitem)
  4.         {
  5.             case 0:
  6.             {
  7.                 if(gTeam[playerid] == GroveStreet)
  8.                 {
  9.                     new Float:x, Float:y, Float:z, Float:a;
  10.                     GetPlayerPos(playerid, x,y,z);
  11.                     GetPlayerFacingAngle(playerid, a);
  12.                     CreateVehicle(562, x+3,y,z, a, Verde, Verde, -1);
  13.                     printf("Auto Spawnata");
  14.                     PutPlayerInVehicle(playerid, 562, 0);
  15.                 }
  16.                 else if(gTeam[playerid] == Ballas)
  17.                 {
  18.                     new Float:x, Float:y, Float:z, Float:a;
  19.                     GetPlayerPos(playerid, x,y,z);
  20.                     GetPlayerFacingAngle(playerid, a);
  21.                     CreateVehicle(562, x+3,y,z, a, Viola, Viola, -1);
  22.                     printf("Auto Spawnata");
  23.                     PutPlayerInVehicle(playerid, 562, 0);
  24.                 }
  25.             }
  26.         }
  27.     return 1;
  28.     }
  29.  
  30. // but if i do /elegy it works
  31.  
  32. CMD:elegy(playerid, params[])
  33. {
  34.     new Float:x, Float:y, Float:z, Float:a;
  35.     GetPlayerPos(playerid, x,y,z);
  36.     GetPlayerFacingAngle(playerid, a);
  37.     CreateVehicle(562, x+3,y,z, a, Verde, Verde, -1);
  38.     printf("Auto Spawnata");
  39.     PutPlayerInVehicle(playerid, 562, 0);
  40.     return 1;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment