20.07.2010, 02:52
Peguei esse Fs e e liguei qdo vo no pickup pra ocmpra e clico em buy apaarece a mensagem vc ja esta logado '-' / :S
#include <a_samp>
new weapons;
public OnFilterScriptInit()
{
weapons = CreatePickup(1242,1,2176.109375,1618.991210,999.97 6562);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == weapons)
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Choose a weapon", "Deagle \n MP5 \n M4 \n Shotgun ", "Buy", "Cancel");
return 1;
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 5)
{
if(response)
{
if(GetPlayerMoney(playerid) >= 10000)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 24, 9999);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 29, 9999);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 32, 9999);
return 1;
}
if(listitem == 3)
{
GivePlayerWeapon(playerid, 25, 9999);
return 1;
}
}
}
}
return 1;
}
#include <a_samp>
new weapons;
public OnFilterScriptInit()
{
weapons = CreatePickup(1242,1,2176.109375,1618.991210,999.97 6562);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == weapons)
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Choose a weapon", "Deagle \n MP5 \n M4 \n Shotgun ", "Buy", "Cancel");
return 1;
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 5)
{
if(response)
{
if(GetPlayerMoney(playerid) >= 10000)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 24, 9999);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 29, 9999);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 32, 9999);
return 1;
}
if(listitem == 3)
{
GivePlayerWeapon(playerid, 25, 9999);
return 1;
}
}
}
}
return 1;
}