SA-MP Forums Archive
vorota a clan - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: vorota a clan (/showthread.php?tid=591212)



vorota a clan - hillko - 09.10.2015

Код HTML:
#include <a_samp>
#pragma tabsize 0

new gate;

forward GateClose(playerid);

public OnFilterScriptInit()
{
    gate = CreateObject(980, 1521.8, 2773, 12.4, 0.0, 0.0, 270.0);
	return 1;
}


public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/voroga", true)==0)
    {
    MoveObject(gate, 1521.8, 2773, 17.6, 1.0);
    SetTimer("GateClose", 10000, 0);
    return 1;
}
return 1;
}
  
        
public GateClose(playerid)
{
      MoveObject(gate, 1521.8, 2773, 12.4, 1.0);
      return 1;
}
how to make this command could only use clan ?