03.10.2012, 16:00
pawn Код:
CMD:carwash(playerid, parmas[])
{
if(IsPlayerInRangeOfPoint(playerid, 1084227584, 1156507145, 3302951282, 1095845911))
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == 2)
{
new var0 = 0;
while(++var0 < 89)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == glob2C[var0][0])
{
SendClientMessage(playerid, 0xAA3333AA, "You cannot have this vehicle washed.");
return 1;
}