SHARE
TWEET

Untitled

a guest Feb 21st, 2020 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Callsign by lucas
  2. //News y Deletes
  3.     new veh = GetPlayerVehicleID(playerid);
  4.     Delete3DTextLabel(vehiculo_callsign_testo[veh]);
  5.     vehiculo_callsign_status[veh] = 0;
  6.     return 1;
  7.    
  8. //variables
  9.     new Text3D:vehiculo_callsign_testo[MAX_VEHICLES];
  10.     new vehiculo_callsign_status[MAX_VEHICLES];
  11.    
  12.    
  13.    
  14.    
  15.     //CMD
  16. CMD:callsign(playerid,params[])
  17. {
  18.     new veh = GetPlayerVehicleID(playerid);
  19.         if(IsPlayerInAnyVehicle(playerid))
  20.     {
  21.                 if(isnull(params)) return SendClientMessage(playerid,COLOR_ORANGE,"INFO: {FFFFFF}/callsign [texto]");
  22.                 if(!vehiculo_callsign_status[veh])
  23.         {
  24.         new string[128];
  25.         format(string,sizeof(string), "%s",params);
  26.         vehiculo_callsign_testo[veh] = Create3DTextLabel(string, 0xFFFFFFFF, 0.0, 0.0, 0.0, 50.0, 0, 1);
  27.         Attach3DTextLabelToVehicle( vehiculo_callsign_testo[veh], veh, -0.7, -1.9, -0.3);
  28.         vehiculo_callsign_status[veh] = 1;
  29.                 }
  30.                 else
  31.                 {
  32.                 Delete3DTextLabel(vehiculo_callsign_testo[veh]);
  33.                 vehiculo_callsign_status[veh] = 0;
  34.                 return 1;
  35.                         }
  36.                 }
  37.                 else
  38.                 {
  39.         SendClientMessage(playerid,COLOR_ORANGE,"ERROR: {FFFFFF}Tú no estas en un vehiculo");
  40.         return 1;
  41.                 }
  42.         return 1;
  43. }
  44. CMD:deletecallsign(playerid,params[])
  45. {
  46.         new veh = GetPlayerVehicleID(playerid);
  47.         if(IsPlayerInAnyVehicle(playerid))
  48.     {
  49.         Delete3DTextLabel(vehiculo_callsign_testo[veh]);
  50.                 vehiculo_callsign_status[veh] = 0;
  51.     }
  52.     else
  53.     {
  54.     SendClientMessage(playerid,COLOR_ORANGE,"ERROR: {FFFFFF}Tú no estas en un vehiculo");
  55.     }
  56.         return 1;
  57. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top