31.03.2013, 18:24
Hello everybody.Can you guys help me a bit? How to turn this /fly command only for rcon admins?
Код:
#include <a_samp>
#include <fly>
public OnFilterScriptInit()
{
print("=========================================\n");
print("SuperMan for SuperNatural People GM");
print(" ");
print("=========================================\n");
return 1;
}
public OnPlayerConnect(playerid)
{
InitFly(playerid);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!IsPlayerAdmin(cmdtext,"/fly",true))
{
StartFly(playerid);
return 1;
}
if(!strcmp(cmdtext,"/stopfly",true))
{
StopFly(playerid);
return 1;
}
return 0;
}



:
thanks! i was keeping the fly.inc at pawno with fly.pwn xD