[Pomoc]uncow command

Započeo Kabum,Kabum, Jul 06, 2012, 13:45:42 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

GM koji koristim:moj GM od 0
Opis problema: napravio sam komandu portovi i pise uncow command ali otvori dialog
Dio skripte: CMD:portovi(playerid, params[])
{
ShowPlayerDialog(playerid,5001,DIALOG_STYLE_LIST ,"PORTOVI","drift\ndrift2\ndrift3\ndrift4\nstunt\ndm\ndm2","OK","Zatvori");
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid == 5001)
{
case 1:
{
if(!response)
{
SendClientMessage(playerid, 0xFF0000FF, "Odustali ste");
return 1;
}
switch(listitem)
{
case 0:
{
SetPlayerPos(playerid, -298.2917,1537.3314,75.5625);
SetPlayerFacingAngle(playerid, 165.4075);
SendClientMessage(playerid, COLOR_GREEN, "Teleportovan si u  Drift 1!");
}
case 1:
{
SetPlayerPos(playerid, 2313.1411,1403.1350,42.8203);
SetPlayerFacingAngle(playerid, 354.0862);
SendClientMessage(playerid, COLOR_GREEN, "Teleportovan si u Drift 2!");
}
case 2:
{
SetPlayerPos(playerid, -2127.2776,912.4420,79.8392);
SetPlayerFacingAngle(playerid, 347.8088);
SendClientMessage(playerid, COLOR_YELLOW, "Tseleportovan si u Drift 3!");
}
case 3:
{
SetPlayerPos(playerid, -2385.4304,-587.4242,132.1172);
SetPlayerFacingAngle(playerid, 126.5904);
SendClientMessage(playerid, COLOR_YELLOW, "Teleportovan si u Drift 4!");
}
case 4:
{
SetPlayerPos(playerid, 1049.5277,2505.6536,360.2062);
SetPlayerFacingAngle(playerid, 3.8638);
SendClientMessage(playerid, COLOR_YELLOW, "Teleportovan si u Stunt!");
}
case 5:
{
SetPlayerPos(playerid, 234.8519,-1855.6536,8.2832);//postavi poziciju od mape 1
SetPlayerFacingAngle(playerid, 351.4334);//postavi angle od mape 1
SendClientMessage(playerid, COLOR_GREEN, "Teleportovan si u  Death Match 1!");
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 34, 1000);
GivePlayerWeapon(playerid, 29, 1000);
GivePlayerWeapon(playerid, 24, 1000);
}
case 6:
{
SetPlayerPos(playerid, 2761.5713,1218.4265,26.8340);//postavi poziciju od mape 1
SetPlayerFacingAngle(playerid, 224.2976);//postavi angle od mape 1
SendClientMessage(playerid, COLOR_GREEN, "Teleportovan si u Death Match 2!");
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 29, 1000);
GivePlayerWeapon(playerid, 34, 1000);
GivePlayerWeapon(playerid, 24, 1000);
}
}
}
}
return 0;
}
Poslednja Izmena: Jul 06, 2012, 13:46:27 POSLE PODNE od Kabum,Kabum