03.01.2014, 09:26
try
pawn Код:
if (strcmp("/throw", cmdtext, true, 10) == 0)
{
if(Trasher[playerid] == 1)
{
if(HasTrash > 1)
{
new Float:XXO, Float:YXO, Float:ZXO;
GetVehiclePos(408, Float:XXO, Float:YXO, Float:ZXO);
if(IsPlayerInRangeOfPoint(playerid, 2.0, XXO, YXO, ZXO))
{
SendClientMessage(playerid, -1, "Good Job! Keep it up! You throwed a Trash bag.");
GivePlayerMoney(playerid, 1000);
HasTrash --;
}
else if(HasTrash == 0)
{
SendClientMessage(playerid, -1, "You're not near any Trash Master or you don't have a Trash Bag.");
}
}
}
return 1;
}