31.12.2011, 11:44
Hmm never made it like you did, just try it like this:
pawn Код:
YCMD:buynitro(playerid, params[])
{
if(IsPlayerDriver(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, -216.4033,1048.0056,19.7422))
{
if(PlayerInfo[playerid][VehNitro] == 0)
{
PlayerInfo[playerid][VehNitro] = 1;
return 1;
}
else return SCM(playerid, COLOR_GREY, "You already have Nitrous in your vehicle.");
}
else return SCM(playerid, COLOR_GREY, "You're not at Nitrous Shop");
}
else return SCM(playerid, COLOR_GREY, "You're not in a vehicle");
}

