Jump to content
  • 0

Ajutor la count


Spilter

Question

Salut!As vrea sa pun count doar pentru admini si sa poata fi activata la event( este un fs de pe net cu count ) si nush exact cum sa pun aceste lucruri;

 

liniile

CMD:count(playerid,params[])
{
	new Float:x,Float:y,Float:z;
	GetPlayerPos(playerid, x, y, z);
	if (Count == 0)
	{
	SetTimer("Counting",1000,false);
	}else{
	SendClientMessage(playerid, 0xFF0000FF,"Countdown already started!");
	}
	if IsPlayerInRangeOfPoint(playerid, RANGEOFSTARTER, x, y, z)*then
	{
	TogglePlayerControllable(playerid, 0);
	}
	return 1;
}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

[pawn]CMD:count(playerid,params[])

{

    if(IsPlayerAdmin(playerid))

    {

    new Float:x,Float:y,Float:z;

    GetPlayerPos(playerid, x, y, z);

    if (Count == 0)

    {

        SetTimer("Counting",1000,false);

        }else{

        SendClientMessage(playerid, 0xFF0000FF,"Countdown already started!");

    }

    if IsPlayerInRangeOfPoint(playerid, RANGEOFSTARTER, x, y, z)*then

    {

        TogglePlayerControllable(playerid, 0);

    }

    return 1;

    }

    else return SendClientMessage(playerid, 0xFF0000AA, "ERROR: Trebuie sa fi RCON Admin pentru a folosii aceasta comanda!");

}[/pawn]

3r4AlPA.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.