04.08.2011, 17:15
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;
}