Work /spec on 0.3x?
#5

Код:
COMMAND:spec(playerid,params[])
{
        if(pInfo[playerid][pAdminLevel] >= 1)
    {
	new id;
	if(sscanf(params,"d",id)) return SendClientMessage(playerid,-1,""chat""COL_YELLOW" Usage: /sped <id>");
	if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,""chat""COL_RED" Player is not connected!");

	TogglePlayerSpectating(playerid,1);
    PlayerSpectatePlayer(playerid,id);
    SetPlayerInterior(playerid,GetPlayerInterior(id));
 	}
	else {
		SendClientMessage(playerid,-1,""chat""COL_RED" You do not have the right admin permissions for this command!");
	}
	return 1;
}

COMMAND:specoff(playerid,params[])
{
        if(pInfo[playerid][pAdminLevel] >= 1)
    {

      TogglePlayerSpectating(playerid,0);
    	}
	else {
		SendClientMessage(playerid,-1,""chat""COL_RED" You do not have the right admin permissions for this command!");
	}
	return 1;
}
It working only on 1 Gamemode i've created in the others i have always this bug that the admin dieng when he use the command.
Reply


Messages In This Thread
Work /spec on 0.3x? - by Blackazur - 06.05.2013, 15:49
Re: Work /spec on 0.3x? - by NathNathii - 06.05.2013, 15:51
Re: Work /spec on 0.3x? - by dannyk0ed - 06.05.2013, 15:52
Re: Work /spec on 0.3x? - by Excel™ - 06.05.2013, 15:52
AW: Work /spec on 0.3x? - by Blackazur - 06.05.2013, 15:59
AW: Work /spec on 0.3x? - by Blackazur - 06.05.2013, 16:09
Re: Work /spec on 0.3x? - by MattyG - 06.05.2013, 17:42

Forum Jump:


Users browsing this thread: 1 Guest(s)