01.03.2015, 12:48
Hey, I've been trying create stores for my servers, and I made a stock function to easily add stores to the server.
Here is the function:
It works, the pickup and the 3d text label shows up. However, when I try to enter the pickup, it will not work.
I used EnterMexican as the pickupid, and I used it under OnPlayerPickupPickUp, but it still doesn't work.
Here is the function:
Код:
stock AddStore(id, msg[], color, Float:x, Float:y, Float:z) { Create3DTextLabel(msg, color, Float:x, Float:y, Float:z, 35.0, 0, 1); id = CreatePickup(1318, 1, Float:x, Float:y, Float:z, -1); #pragma unused id CreatedStores++; return 1; }
Код:
AddStore(EnterMexican, "Mexican Restraunt\n{FFFFFF}Entrance", 0xFF9900FF, 1948.9808,-1985.0093,13.5469); // Rodeo