02.02.2013, 01:42
Hello, i'm working on a small, simple and quick filter script. It's a drug system that will spawn obects at the feet of the command sending player.
Example:
Player: /plantlist
Server: Select a seed from the list below.
Sever: 1. Pot
Server: 2. Opium
Player: /plantlist 2
Now the selected object / seed will spawn a object right on the players cord's but -0.5 on the Z.
What i have:
What i thought would work / might explain what i want to do:
NOTICE: CreateObject(742, x, y, z-0.5, 0, 0, 0, 10.0)
Finally, i have everything i need in working condition, i just don't know how to simply make the "CreateObject" spawn it a little bit lower then the exact player position.
Example:
Player: /plantlist
Server: Select a seed from the list below.
Sever: 1. Pot
Server: 2. Opium
Player: /plantlist 2
Now the selected object / seed will spawn a object right on the players cord's but -0.5 on the Z.
What i have:
Код:
new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); CreateObject(742, x, y, z, 0, 0, 0, 10.0);
Код:
new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); CreateObject(742, x, y, z-0.5, 0, 0, 0, 10.0);
Finally, i have everything i need in working condition, i just don't know how to simply make the "CreateObject" spawn it a little bit lower then the exact player position.