16.06.2010, 22:23
pawn Код:
Comando:
if (strcmp("/telesmenu", cmdtext, true, 10) == 0)
{
ShowMenuForPlayer(teles1, playerid);
TogglePlayerControllable(playerid, 0);
return 1;
}
E o SelectMenu ... :
new Menu:CurrentMenu = GetPlayerMenu(playerid);
if(CurrentMenu == teles1)
{
switch(row)
{
case 0: {
if(IsPlayerInAnyVehicle(playerid)){
SetVehiclePos(GetPlayerVehicleID(playerid),3765.612, -1877.323, 1799.874);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 266.6323);
GameTextForPlayer(playerid,"BEM VINDO AO DROP",4000,6);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);}
if (!IsPlayerInAnyVehicle(playerid)) {
SetPlayerPos(playerid,3765.612, -1877.323, 1799.874);
SetPlayerFacingAngle(playerid, 266.6323);}
new msg[128];
new nick[MAX_PLAYER_NAME];
GetPlayerName(playerid,nick,sizeof(nick));
format(msg,sizeof(msg),"[Teles] %s foi para o drop ((/drop)).",nick);
SendClientMessageToAll(LARANJA_FORTE, msg);
TogglePlayerControllable(playerid,1);
SetPlayerInterior(playerid, 0);
}
case 1: {
if (!IsPlayerInAnyVehicle(playerid)) {
SetPlayerPos(playerid,2072.9611816406,-2235.3095703125,13.196100234985);
SetPlayerFacingAngle(playerid, 266.6323);}
new msg[128];
new nick[MAX_PLAYER_NAME];
GetPlayerName(playerid,nick,sizeof(nick));
format(msg,sizeof(msg),"[Teles] %s foi para o Ring vai lutar contra ele ((/ring)).",nick);
SendClientMessageToAll(LARANJA_FORTE, msg);
GivePlayerWeapon(playerid, 8, 0);
GivePlayerWeapon(playerid, 9, 100);
SetPlayerSkin(playerid, 81) || SetPlayerSkin(playerid, 80);
TogglePlayerControllable(playerid,1);
SetPlayerInterior(playerid, 0);
}
case 2: {
if(IsPlayerInAnyVehicle(playerid)){
SetVehiclePos(GetPlayerVehicleID(playerid),1544.5890,-1350.8079,329.4789);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 266.6323);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);}
if (!IsPlayerInAnyVehicle(playerid)) {
SetPlayerPos(playerid, 1544.5890,-1350.8079,329.4789);
new msg[128];
new nick[MAX_PLAYER_NAME];
GetPlayerName(playerid,nick,sizeof(nick));
format(msg,sizeof(msg),"[Teles] %s foi para o Megajump((/megajump)).",nick);
SendClientMessageToAll(LARANJA_FORTE, msg);
SetPlayerFacingAngle(playerid, 266.6323);}
TogglePlayerControllable(playerid,1);
SetPlayerInterior(playerid, 0);
}
}
}
E porque meu SetVehiclePos nгo ta funfando e nenhum cmd. Exemplo:
pawn Код:
if (strcmp("/drop", cmdtext, true, 10) == 0)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 3765.612, -1877.323, 1799.874);
GameTextForPlayer(playerid,"BEM VINDO AO DROP",4000,6);
SetVehiclePos(playerid, 3765.612, -1877.323, 1799.874);
SetPlayerFacingAngle(playerid,2);
new msg[128];
new nick[MAX_PLAYER_NAME];
GetPlayerName(playerid,nick,sizeof(nick));
format(msg,sizeof(msg),"[Teles] %s foi para o drop ((/drop)).",nick);
SendClientMessageToAll( BRANCO, msg);
return 1;
}