13.03.2015, 22:42
Hello there,I am trying to create /drag command using YCMD to my server but i failed,Can anyone help me please?
YCMD:drag(playerid, params[], help) { SetPlayerPos(playerid, X, Y, Z); SetPlayerFacingAngle(playerid, angle); return 1; }
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; }