Ramping Help
#1

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/ramping", cmdtext, true, 10) == 0)
    {
    if(Enabled[playerid] == 1)
    {SendClientMessage(playerid, 0xFFFF00FF, "Ramping disabled!");
     Enabled[playerid]=0;
     Pers[playerid]=0;
     return 1;
    }
    if(Enabled[playerid] == 0)
    {
        SendClientMessage(playerid, 0xFFFF00FF, "Ramping enabled!");
        SendClientMessage(playerid, 0xFFFF00FF, "Press CTRL or ALT GR start ramping!");
        SendClientMessage(playerid, 0xFF0000FF, "You've payed 75 000.");
        GivePlayerMoney(playerid, -75000);
        Enabled[playerid]=1;
        Pers[playerid]=1655;
        return 1;
    }
If the player doesn't have 75000 he can't ramp, cause when I try it turns to -75000, so if he has 75000 he can ramp?
Reply


Messages In This Thread
Ramping Help - by XVK - 04.08.2011, 17:15
Re: Ramping Help - by Shockey HD - 04.08.2011, 17:42
Re: Ramping Help - by XVK - 04.08.2011, 17:52
Re: Ramping Help - by Kush - 04.08.2011, 17:55
Re: Ramping Help - by Kingunit - 04.08.2011, 17:55
Re: Ramping Help - by XVK - 04.08.2011, 18:13

Forum Jump:


Users browsing this thread: 2 Guest(s)