17.01.2015, 22:24
Код:
CMD:goto(playerid,params[]) { new id; if(isnull(params)) return SendClientMessage(playerid, -1, "{FF0000}<!> {C3C3C3} /goto [ID]"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "{FF0000}JOGADOR OFFLINE!"); if(PlayerInfo[id][GOTOOFF] == 1) return SendClientMessage(playerid, -1, "{FF0000}ESSE JOGADOR DESABLITOU O GOTO!"); GetPlayerPos(strval(params),X,Y,Z); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid),X,Y+2,Z+1); SetVehicleVirtualWorld(GetPlayerVehicleID(playerid),GetPlayerVirtualWorld(strval(params))); LinkVehicleToInterior(GetPlayerVehicleID(playerid),GetPlayerInterior(strval(params))); } else { SetPlayerPos(playerid,X+2,Y,Z+1); } SetPlayerInterior(playerid,GetPlayerInterior(strval(params))); SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(strval(params))); format(CBDStr, sizeof CBDStr, "Player %s Teleportou Atй Vocк !",Nome(playerid)); SendClientMessage(id,0x00FF00FF,CBDStr); return 1; } //=-=-=--==--=-=-=-==-==-=-= Trancar goto =-=-=--=-=-=-=-===-=// CMD:gotooff(playerid) { SendClientMessage(playerid, -1, "{00FF00}» ! « {FFFFFF}Goto atй vocк Desabilitado!"); PlayerInfo[playerid][GOTOOFF] = 1; return 1; } CMD:gotoon(playerid) { SendClientMessage(playerid, -1, "{00FF00}» ! « {FFFFFF}Goto atй Vocк Liberado!"); PlayerInfo[playerid][GOTOOFF] = 0; return 1; } //--------------------------------------------------------------------