20.02.2015, 15:39
How to make /drag commands?
If i use this command then i start drag myself
PHP код:
COMMAND:drag(playerid, params[])
{
new playerb, string[128];
if(PlayerLoggedIn[playerid] == true)
{
if(!sscanf(params, "u", playerb))
{
if(IsPlayerConnected(playerb))
{
if(KasutajaInfo[playerid][Grupeering] == 1 || KasutajaInfo[playerid][Grupeering] == 9)
{
format(string, sizeof(string), "* Sind hakkati tirima %s,", playerid);
SendClientMessage(playerb, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Sa alustasid tirimist %s,", playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s alustas %s tirimist.", playerid ,playerb);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
TogglePlayerControllable(playerid, 0);
}
else SCM(playerid, COLOR_GREY, "Sa pole politseinik");
}
else SCM(playerid, COLOR_GREY, "Sa pole serveris");
}
else SCM(playerid, COLOR_GREY, "KASUTA: /tiri ID");
}
else SCM(playerid, COLOR_GREY, "Sa pole sisse logitud");
return 1;
}