if(strcmp("/dm1", cmdtext, true, 10) == 0)
{
CarregarObjetosPlayer(playerid);
ResetPlayerWeapons(playerid); // resetarб as armas, logo apуs, dк as armas aos players.
GivePlayerWeapon(playerid, 35, 800);
GameTextForPlayer(playerid, "~n~~g~~h~DM 1", 5000, 5);
MensagemTeleporte(playerid, "DM 1");
SetPlayerPos(playerid, 2450.3457, -2880.7126, 7.601;
SetPlayerFacingAngle(playerid, 178.5182);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
if(strcmp(cmdtext,"/DM 1",true)==0) { new vehicleid = GetPlayerVehicleID(playerid); new State = GetPlayerState(playerid); if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER) { GameTextForPlayer(playerid,"Voce foi para o DM 1 , cuidado !",4000,6); LinkVehicleToInterior(vehicleid,0); SetPlayerInterior(playerid,0); return SetVehiclePos(vehicleid,bote aqui as coodenadas x,y,z); } SetPlayerPos(playerid,bote aqui as coodenadas x,y,z); SetPlayerInterior(playerid,0); GameTextForPlayer(playerid,"Voce foi para o DM 1 , cuidado !",4000,6); return 1; } |