SA-MP Forums Archive
Vortex Roleplay 2 business cmd help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vortex Roleplay 2 business cmd help (/showthread.php?tid=399547)



Vortex Roleplay 2 business cmd help - Matthew_Garrowo - 15.12.2012

can someone please help me understand this cmd /createbusiness[interior exit complete] i tryed tryping in a bunch of things but it wont work and i am loged into rcon i also posted on the vortex thread but no reply


Re: Vortex Roleplay 2 business cmd help - maramizo - 15.12.2012

CreateDynamicPickup, OnPlayerPickUpPickup, SetPlayerPos, CMD:buy, etc.
You should be able to generalize it.


Re: Vortex Roleplay 2 business cmd help - Matthew_Garrowo - 15.12.2012

can you show me a sample code so i would understand it more

/createbusiness[interior exit complete]


Re: Vortex Roleplay 2 business cmd help - Matthew_Garrowo - 15.12.2012

beacuse i kno what ints and shit are but it must be the way im putting them in


Re: Vortex Roleplay 2 business cmd help - RajatPawar - 15.12.2012

pawn Код:
new p;
CMD:createbiz(playerid,params[])
{
              //Your conditions here
else
{
new Float:x,
      Float:y,
      Float:z;
GetPlayerPos(playerid,x,y,z);
p = CreateDynamicPickup(.....x,y,z..);
}
return 1;
------------------------------------
public OnPlayerPickUpDynamicPickup(playerid, pickupid);
{
if(pickupid==p)
//Set position, interior and things..
return 1;
}
Now, that wasn't hard, is it?


Re: Vortex Roleplay 2 business cmd help - Matthew_Garrowo - 15.12.2012

thanks