05.08.2015, 15:56
I have this command but the objects doest not appear
Код:
new Cage[MAX_PLAYERS][4]; CMD:cage(playerid, params[]) { new str[128], id, Float:x, Float:y, Float:z; GetPlayerPos(id, x, y, z); format(str, sizeof(str), "You caged %s(%d)", GetName(id), id); SendClientMessage(playerid, BAN, str); PlayerInfo[playerid][cage] = 1; PlayerInfo[id][CageC]++; Cage[id][0] = CreateObject(985, x, y+4, z, 0.0, 0.0, 0.0); Cage[id][1] = CreateObject(985, x+4, y, z, 0.0, 0.0, 90.0); Cage[id][2] = CreateObject(985, x-4, y, z, 0.0, 0.0, 270.0); Cage[id][3] = CreateObject(985, x, y-4, z, 0.0, 0.0, 180.0); return 1; }