Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.74 KB | None | 0 0
  1. #include <a_samp>
  2. new Text3D:DrivingRCText[MAX_PLAYERS];
  3. public OnPlayerCommandText(playerid, cmdtext[])
  4. {
  5.     if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  6.     {
  7.         CallRemoteFunction("PutPlayerInRcKillstreakVehicle", "i", playerid);
  8.         return 1;
  9.     }
  10.     return 0;
  11. }
  12.  
  13. forward OnPlayerEnterStreakRcVehicle(playerid, vehicleid);
  14. public OnPlayerEnterStreakRcVehicle(playerid, vehicleid)
  15. {
  16.     new Float:Pos[3]; GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  17.     DrivingRCText[playerid] = Create3DTextLabel("I'm using mah RC vehicle to pwn ya nubs!", 0x008080FF, Pos[0], Pos[1], Pos[2] + 5, 0.0, 0, 1);
  18. }
  19.  
  20. forward OnPlayerExitStreakRcVehicle(playerid);
  21. public OnPlayerExitStreakRcVehicle(playerid)
  22. {
  23.     Delete3DTextLabel(DrivingRCText[playerid]);
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement