24.04.2013, 19:54
pawn Код:
CMD:tow(playerid, params[])
{
if(IsPlayerInAnyVehicle(playerid))
{
new vehicleid = GetPlayerVehicleID(playerid);
new string[128];
if(isnull(params))
{
SendClientMessage(playerid, -1, "Usage: /tow [VehicleID]");
SendClientMessage(playerid, -1, "Hint: Use /dl to find the ID of the vehicle to tow");
}
if(!strcmp(params, "%s", false))
{
format(string, 3, "%s", params);
if(GetVehicleModel(vehicleid) == 525 & 554 & 489 & 490)
{
AttachTrailerToVehicle(vehicleid, string);
return 1;
}
}
}
return 0;
}