01.05.2014, 00:16
pawn Код:
YCMD:checksb(playerid, params[], help)
{
if(help) {
SendClientMessage(playerid, X11_WHITE, "Check if you are wearing the seat belt or not");
return 1;
}
if(!IsPlayerInAnyVehicle(playerid) || !HasSeatbelts(GetVehicleModel(GetPlayerVehicleID(playerid))))
{ //line 124
SendClientMessage(playerid, COLOR_LIGHTRED, "You need to be in a car!");
return 1;
}
if(!Seatbelt[playerid])
{
SendClientMessage(playerid,-1,"You aren't wearing a seat belt");
}
else
{
SendClentMessage(playerid,-1,"You are wearing a seat belt");
}
return 1;
}