21.10.2013, 21:03
Код:
enum GangData { Float:Spawnx, Float:Spawny, Float:Spawnz, } CMD:setspawn(playerid, params[]) { if(!(IsPlayerAdmin(playerid))) return SendClientMessage(playerid, 0xFF0000AA, "You need to be RCON admin to use this command."); new gangid = PlayerInfo[playerid][GangID],string[256]; new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); GangInfo[gangid][Spawnx] = x; GangInfo[gangid][Spawny] = y; GangInfo[gangid][Spawnz] = z; format(string, sizeof(string), "%s has change the spawn.",PlayerName(playerid)); SendGangMessage(gangid,string,-1); DestroyPickup(gpickup[gangid]); gpickup[gangid] = CreatePickup(1314, 1, x,y,z, -1); return 1; }
Why is it wrong it's just not spawning me at the position which was set.