13.03.2015, 23:25
Код:
YCMD:drag(playerid, params[], help) { if(help) { SendClientMessage(playerid, X11_WHITE, "Drags someone."); return 1; } if(isPlayerFrozen(playerid)) { SendClientMessage(playerid, X11_TOMATO_2, "You can't use this while frozen!"); return 1; } new faction = GetPVarInt(playerid, "Faction"); new rank = GetPVarInt(playerid, "Rank"); if(!IsValidFaction(faction) || faction == 0) { SendClientMessage(playerid, X11_TOMATO_2, "You aren't in a faction!"); return 1; }