18.02.2011, 15:41
It is night here and i havent slept much, and i fail 
Could you give a example?

Could you give a example?
pawn Код:
#include <a_samp>
new MyObject[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/create", cmdtext, true, 10) == 0)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
MyObject[playerid] = CreateObject(1337, X+0.8, Y, Z-1, 0.0, 0.0, 0.0);
return 1;
}
return 0;
}
public OnPlayerDeath(playerid, killerid, reason)
{
DestroyObject(MyObject[playerid]);
return 1;
}