Доброго времени суток всем
Все мы знаем что на свете очень много FS с якобы "дропом денег"
Давайте сдесь и сейчас решим эту проблему
Вот нашёл где то более похожий на правду кусок FS
Но деньги тоже не падают
[pwn]#include <a_samp>
new cash;
new cash2;
new cash3;
new cash4;
new cash5;
static gTeam[MAX_PLAYERS];
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == cash){
GivePlayerMoney(playerid,100); //this is the money the player gets by harvesting money pickup
}
else if(pickupid == cash2){
GivePlayerMoney(playerid,100); //this is the money the player gets by harvesting money pickup
}
else if(pickupid == cash3){
GivePlayerMoney(playerid,100); //this is the money the player gets by harvesting money pickup
}
else if(pickupid == cash4){
GivePlayerMoney(playerid,100); //this is the money the player gets by harvesting money pickup
}
else if(pickupid == cash5){
GivePlayerMoney(playerid,100); //this is the money the player gets by harvesting money pickup
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
new Float:x,Float:y,Float:z;
if(gTeam[killerid] != gTeam[playerid]) {
GivePlayerMoney(playerid, -500);
GetPlayerPos(playerid,x,y,z);
cash = CreatePickup(1212,3,x,y,z);
cash2 = CreatePickup(1212,3,x+1,y,z);
cash3 = CreatePickup(1212,3,x-1,y,z);
cash4 = CreatePickup(1212,3,x,y+1,z);
cash5 = CreatePickup(1212,3,x,y-1,z); }
}[/pwn]
Есть предоложения?