30.08.2016, 21:08
Код:
CMD:checkcargo(playerid, params[])
{
new string[60];
for(new i; i < sizeof(meatcar); i++)
{
new vehicleid = meatcar[i];
if(IsPlayerInRangeOfVehicle(playerid, meatcar[i], 4))
{
format(string, sizeof(string), "You have %d bags of meat loaded.", loadedcargo[vehicleid]);
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
format(string, sizeof(string), "* %s checked the trunk.", ReturnName(playerid, 0));
SetPlayerChatBubble(playerid, string, COLOR_PURPLE, 30.0, 10000);
SendClientMessageEx(playerid, COLOR_PURPLE, "* %s checked the trunk.", ReturnName(playerid, 0));
}
else
{
SCM(playerid, COLOR_GREY, "You are not behind a van.");
}
}
return 1;
}
This message displays five times.
Код:
SCM(playerid, COLOR_GREY, "You are not behind a van.");


