21.06.2012, 18:17
нσℓα тєηgσ ρяσвℓємαѕ ραяα нαўєя ѕραωη єη υη ιηтєяισя ўυαη∂σ нαgσ υη ўσмαη∂σ qυє нαgα ѕραωη єη єℓ ιηтєяισя ѕαℓє єℓ ѕкιη νσℓαη∂σ єη ℓσѕ αιяєѕ αуυ∂α υ.υ
El comando tiene SetPlayerInterior, cierto? |
TogglePlayerControllable(playerid, 0); SetPVarInt(playerid, "CargandoObjetos", 1); SetTimerEx("LoadingObjects", 4000, 0, "d", playerid); |
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/ad1", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,04049,DIALOG_STYLE_LIST,"{FF0000}Elige tu equipo","Defensores \n Atacantes","Accept","Cancel");
return 1;
}
if(dialogid==04048) {
if(response) {
if(listitem==0) { // Dedfensa
SetPlayerInterior(playerid, 1);
TogglePlayerControllable(playerid, 1);
SetPVarInt(playerid, "CargandoObjetos", 1);
SetTimerEx("LoadingObjects", 4000, 0, "d", playerid);
SendClientMessage(playerid, 0xFFFFFF, "Defiende asta morir! para abandonar este Ad usa /kill");
GivePlayerWeapon(playerid,24,200);
SetPlayerSkin(playerid,199);
SetPlayerArmour(playerid, 99);
SetPlayerPos(playerid,2167.7634,1609.6404,1006.1863);
}
if(listitem==1) { // Atacantes
SetPlayerInterior(playerid, 1);
TogglePlayerControllable(playerid, 1);
SetPVarInt(playerid, "CargandoObjetos", 1);
SetTimerEx("LoadingObjects", 4000, 0, "d", playerid);
SendClientMessage(playerid, 0xFFFFFF, "Eres atacante es hora de matar ! para abandonar este Ad usa /kill");
GivePlayerWeapon(playerid,24,200);
SetPlayerSkin(playerid,199);
SetPlayerArmour(playerid, 99);
SetPlayerPos(playerid,2236.0486,1702.6793,1008.8066);
}
}
return 1;
}
SetPlayerInterior(playerid, 1);
SetPlayerInterior(playerid, ID);