Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: jimmy on December 31, 2011, 02:35:27 am

Title: !getcar and wep prob in GUPS
Post by: jimmy on December 31, 2011, 02:35:27 am
hey guys i am scripting on GUPS v1.16 can you give me or tell me the cmd of !getcar and wep in !getcar cmd i only one time get car when i again write it the car doesnt come can you tell me plzz??
and in wep cmd i need to write !wep spaz not !wep spaz 99999 plzzz help me  :(
Title: Re: !getcar and wep prob in GUPS
Post by: SaFeeR on December 31, 2011, 11:16:55 am
in !getcar cmd i only one time get car when i again write it the car doesnt come
i have same problem but i can solve ur !wep prob
[pawn]else if (strcmp(cmd, "!we", true) == 0 || strcmp(cmd, "!wep", true) == 0) {
   new wep;
   tmp = strtok(cmdtext, idx);
   if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
   else if (!strlen(tmp)) SendClientMessage(playerid, COLOR_GREEN, "USAGE: !wep [WeaponName/ID]");
   else {
      wep = FindWepIDFromString(tmp);
      if(wep != 33 || 3 ) SetPlayerWeapon(playerid,wep,9999999);
      else SendClientMessage(playerid,COLOR_RED,"You can't get this weapon, sorry.");
   }
   return 1;
}[/pawn]
Title: Re: !getcar and wep prob in GUPS
Post by: (VEK)Prince on January 08, 2012, 06:34:54 pm
lol im tired of saying that all people have sufering the same problem but you should not let car boom by you if it comes to an explosion so do !fix or !ff to correct and after that car booms so you can getcar millions time how much you want
Title: Re: !getcar and wep prob in GUPS
Post by: heekz.shadow on January 09, 2012, 10:59:38 am
lol im tired of saying that all people have sufering the same problem but you should not let car boom by you if it comes to an explosion so do !fix or !ff to correct and after that car booms so you can getcar millions time how much you want

 ^

 Add this at getcar command :
Code: [Select]
new Float:X,Float:Y,Float:Z,Float:Angle, szMsg[256];
GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
                        SetVehicleToRespawn(strval(tmp)); // ADD THIS <- ( NOT THE COMMENT )
SetVehiclePos(strval(tmp),X+3,Y+3,Z,Angle);