13.11.2012, 19:53
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(pOffersMechanic[playerid])
{
if(strcmp(cmdtext, "yes", true))
{
PlayerInfo[playerid][pVeh1tyres1] = 0;
PlayerInfo[playerid][pVeh1doors1] = 0;
PlayerInfo[playerid][pVeh1panels1] = 0;
PlayerInfo[playerid][pVeh1lights1] = 0;
GivePlayerCash(playerid, -amount);
GameTextForPlayer(playerid, "Your car's body work has been fixed", 3000, 3);
return 1;
}
if(strcmp(cmdtext, "no", true))
{
GameTextForPlayer(playerid, "Canceled heal offer", 3000, 3);
return 1;
}
return 0;
}
}