/Setspawn
#1

Код:
 
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.
Reply


Messages In This Thread
/Setspawn - by .::: Ecko :::. - 21.10.2013, 21:03
Re: /Setspawn - by -Prodigy- - 21.10.2013, 21:16
Re: /Setspawn - by Akira297 - 21.10.2013, 21:17
Re: /Setspawn - by .::: Ecko :::. - 22.10.2013, 14:14
Re: /Setspawn - by .::: Ecko :::. - 22.10.2013, 15:35

Forum Jump:


Users browsing this thread: 3 Guest(s)