20.11.2011, 05:57
(
Последний раз редактировалось forgottenkings; 09.06.2013 в 03:02.
Причина: little info
)
Light Sabers
Description: This is a simple Fs That Created Light Sabers There is Noting More To IT![ame]http://www.youtube.com/watch?v=udlmlYQu6Yk[/ame]
Video Does Not Belong To Me...
PHP код:
#include a_samp
new bool:swords[MAX_PLAYERS];
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 999999)
{
if(response)
{
switch(listitem)
{
case 0:
{
SetPlayerAttachedObject(playerid, 0, 18649, 6, 0.07000, 0.03000, 0.80000, 90.000000, 0.000000, 0.000000, 1.3, 0.7, 2.3);
swords[playerid] = true;
GivePlayerWeapon(playerid, 8, 1);
}
case 1:
{
SetPlayerAttachedObject(playerid, 0, 18650, 6, 0.07000, 0.03000, 0.80000, 90.000000, 0.000000, 0.000000, 1.3, 0.7, 2.3);
swords[playerid] = true;
GivePlayerWeapon(playerid, 8, 1);
}
case 2:
{
SetPlayerAttachedObject(playerid, 0, 18648, 6, 0.07000, 0.03000, 0.80000, 90.000000, 0.000000, 0.000000, 1.3, 0.7, 2.3);
swords[playerid] = true;
GivePlayerWeapon(playerid, 8, 1);
}
case 3:
{
SetPlayerAttachedObject(playerid, 0, 18647, 6, 0.07000, 0.03000, 0.80000, 90.000000, 0.000000, 0.000000, 1.3, 0.7, 2.3);
swords[playerid] = true;
GivePlayerWeapon(playerid, 8, 1);
}
case 4:
{
SetPlayerAttachedObject(playerid, 0, 18652, 6, 0.07000, 0.03000, 0.80000, 90.000000, 0.000000, 0.000000, 1.3, 0.7, 2.3);
swords[playerid] = true;
GivePlayerWeapon(playerid, 8, 1);
}
case 5:
{
SetPlayerAttachedObject(playerid, 0, 18651, 6, 0.07000, 0.03000, 0.80000, 90.000000, 0.000000, 0.000000, 1.3, 0.7, 2.3);
swords[playerid] = true;
GivePlayerWeapon(playerid, 8, 1);
}
}
}
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/lightsaber", true)==0)
{
if(swords[playerid] == false)
{
ShowPlayerDialog(playerid, 999999, DIALOG_STYLE_LIST, "Light Sabres", "Green\nYellow\nBlue\nRed\nWhite\nPink", "Done!", "Quit");
}
else
{
RemovePlayerAttachedObject(playerid,0);
swords[playerid] = false;
}
return 1;
}
return 0;
}
Direct: No Click Me Plz