06.10.2014, 07:30
For some reason, when I use the command, it's not placing the object at all. It's returning the message "You have planted a marijuana bush etc.." but that's all. It's not creating the object I want it to create.
Any help would be appreciated, thank you
pawn Code:
new string[128], Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x,y,z);
CreateObject(playerid, 823, x, y, z+2, 0, 0, 0);
format(string, sizeof(string), "%s kneels down and plants some weed seeds.", GetICName(playerid));
SendNearByMessage(playerid, ACTION_COLOR, string, 6);
SendClientMessage(playerid, GREEN, "You have planted a marijuana bush, please come back later to harvest it!");
SendClientMessage(playerid, GREEN, "Be careful other players do not take your weed, so keep a close eye on it!");
PlayerStat[playerid][HasWeedSeeds] -= 1;