dcmd Car spawner with money help
#1

i trying to scripting a carspawner with /v [id / name] command with dcmd , but i would insert money for pay the spawn.
So when someone spawn a vehicle, he pays an amount of money, but i have difficulties for how insert :

if(getplayermoney(playerid) < 15000)
return SendClientMessage not enough money ecc ecc......

Someone can help me?
If u need i will put the FS here!

pls help me!
bb!
Reply
#2

Код:
{
    if(GetPlayerMoney(playerid) < -15000)
    {
    SendClientMessage(playerid,COLOR_RED,"You Need 1500$");
    return 1;
    }
    //rest of code
    return 1;
    }
Reply
#3

Код:
if(GetPlayerMoney(playerid) < 15000) return SendClientMessage(playerid, 0xFFFFFFFF, "You need $15,000 to be able to buy a car!");
Reply
#4

in: if(GetPlayerMoney(playerid) < 15000) return SendClientMessage(playerid, ecccc....
it says Unreachble code warning
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)