26.11.2017, 13:05
HI all, I have a map where I created in one stock pickup and 3D text and map icon, only a map icon is created and nothing more.
Code: OnGameMode
Stock:
On a mini map, you'll see the map icons bud but nothing will appear before me.
https://prnt.sc/hffyex
Code: OnGameMode
PHP код:
AddBenzinka(4711.4292,189.8578,12.1993);
AddBenzinka(4703.7734,189.9148,12.1993);
AddBenzinka(5905.7690,-112.8237,12.2998);
AddBenzinka(5904.8530,-129.2558,12.2998);
CreateBank(0, 4765.4922,-123.1113,12.4517);
CreateBank(1, 4346.5586,917.3823,12.2172);
CreateBank(2, 5888.8960,-136.4411,12.2998);
PHP код:
forward CreateBank(bankid, Float:x, Float:y, Float:z);
public CreateBank(bankid, Float:x, Float:y, Float:z)
{
BankPickup[bankid] = CreateDynamicPickup(1274, 23, x, y, z, 0,0,0,50.0);
CreateDynamic3DTextLabel("Banka",COLOR_GREEN_DARK,x,y,z,40,0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0);
CreateDynamicMapIcon(x, y, z, 52, COLOR_BLUE, 0,0,0, 100.0, MAPICON_LOCAL);
return 1;
}
forward AddBenzinka(Float:x, Float:y, Float:z);
public AddBenzinka(Float:x,Float:y,Float:z)
{
BenzinCount ++;
if(BenzinCount >= MAX_BENZIN) return print("Bol prekroceny max. pocet benzinek !");
CreateDynamicPickup(1686, 1, x, y, z, 0,0,0,50.0);
CreateDynamic3DTextLabel("Pumpa",COLOR_GREEN_DARK,x,y,z,40,0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0);
CreateDynamicMapIcon(x, y, z, 25, COLOR_YELLOW,0,0,0,100.0,0);
BenzinPos[BenzinCount][0] = x;
BenzinPos[BenzinCount][1] = y;
BenzinPos[BenzinCount][2] = z;
return true;
}
https://prnt.sc/hffyex