21.08.2015, 22:12
I need to fix that irc include but don't know how...
CMD:gotointerior(playerid, params[]) { new interiorid, Float:X, Float:Y ,Float:Z; if(sscanf(params,"ufff", interiorid, X, Y, Z)) return SendClientMessage(playerid,0xFFF356AA, "Usage: /gotointerior [INTERIORID] [X] [Y] [Z]"); SetPlayerPos(playerid, X, Y, Z); SetPlayerInterior(playerid, interiorid); return 1; }
CMD:gotopoint(playerid, params[]) { new Float:x, Float:y, Float:z,intID; if(sscanf(params, "fffd",x,y,z,intID)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gotopoint [Pos X] [Pos Y] [Pos Z] [interior id]"); if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_RED, "Nu esti autorizat sa folosesti aceasta comanda."); SetPlayerInterior(playerid, intID); SetPlayerPos(playerid, x,y,z); SendClientMessage(playerid, COLOR_GREEN, "Ai fost teleportat cu succes !"); return 1; }