07.04.2012, 13:59
Where You create the object ?
Try this:
pawn Код:
Object = CreateObject(18856, 2001.195679, 1547.113892, 14.283400, 0.0, 0.0, 96.0);
pawn Код:
if(strcmp(cmd, "/vobj", true) == 0)
{
new Float:x, Float:y, Float:z, Float:ang,Object;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,ang);
if(IsPlayerVipMember(playerid))
{
Object = CreateObject(18856, 2001.195679, 1547.113892, 14.283400, 0.0, 0.0, 96.0);//so first create object and then attach by object id that we store in object variable
AttachObjectToPlayer(Object,playerid,0, 0, 0, 0, 0, 0);//attach Object to player
}
else SendClientMessage(playerid, LIGHTBLUE,"StuntProz Bot: You Arent A Vip To Use This Cmd");
return 1;
}