Posts: 617
Threads: 129
Joined: Feb 2014
Quote:
Originally Posted by Aly
When is the pickup "MoneyBagPickup" created?
As for the car export system, here are some function from Incognito's streamer to help you with your map icon:
Код:
native STREAMER_TAG_MAP_ICON CreateDynamicMapIcon(Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_MAP_ICON_SD, style = MAPICON_LOCAL);
native DestroyDynamicMapIcon(STREAMER_TAG_MAP_ICON iconid);
native IsValidDynamicMapIcon(STREAMER_TAG_MAP_ICON iconid);
And to check if that's the same care that you spawned you can save its ID into a variable, like SpawnVeh = vehicleid; or if you want to spawn multiple vehicles you can make an array: new SpawnVeh[2]; SpawnVeh[0] = vehicleid; .And when he enters the CP you just check: if(GetPlayerVehicleID(playerid) == SpawnVeh) ...
|
And aly what if i dont spawn a car i just use a random server car and tell them to take it to the export area... So how will i make it so that it chooses a random car from the server every 1hr to be exported...Btw i understand the rest just need to get how to choose the random car clear
Quote:
Originally Posted by Vince123
This is the thing causing you the error. Try removing it, and see.
|
Vince im sorry man that didnt work