18.10.2010, 19:38
They can join every marker just without an sweeper and at the end the dont get the money + exp.
Please hlep
Please hlep
pawn Code:
if(sweepercp[playerid] == 34)
{
for(new i; i < sizeof(sweeper); i++)
{
if(vehicleid == sweeper[i])
{
GivePlayerMoney(playerid, 5000);
PlayerInfo[i][pExp] ++;
SendClientMessage(playerid, COLOR_GREEN, "Well done buddy, you have cleaned some streets!");
SendClientMessage(playerid, COLOR_GREEN, "You have received $ 5000 and 1 exp.");
break;
}
else
{
SendClientMessage(playerid, COLOR_RED, "You need to be in a sweeper!");
SendClientMessage(playerid, COLOR_RED, "Type /stopjob if you want to stop with cleaning the city.");
}
}
return 1;
}