13.11.2012, 20:11
pawn Код:
public OnPlayerText(playerid, text[])
{
if(pOffersMechanic[playerid])
{
if(strcmp(text, "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(text, "no", true))
{
GameTextForPlayer(playerid, "Canceled heal offer", 3000, 3);
return 1;
}
}
return 1;
}