27.02.2012, 16:36
(
Последний раз редактировалось trulis; 29.02.2012 в 16:54.
)
I have a towcar company faction on my rp server but i can't attach a car to the towtruck to use /towls.
Here is the command for /towls
Here is the command for /towls
pawn Код:
if(strcmp(cmdtext, "/towls", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
if(IsPlayerInVehicle(playerid, 230) || IsPlayerInVehicle(playerid, 233) || IsPlayerInVehicle(playerid, 234) || IsPlayerInVehicle(playerid, 235) || IsPlayerInVehicle(playerid, 325) || IsPlayerInVehicle(playerid, 314))
{
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
{
if(PlayerInfo[playerid][pTow] >= 1)
{
PlayerInfo[playerid][pTow] -= 1;
CP[playerid] = 75;
SetPlayerCheckpoint(playerid, 2412.4646,-1426.3083,23.9848, 5.0);
SendClientMessage(playerid, COLOR_YELLOW, "Drive to Warehouse to destroy the towed car.");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You cannot tow any car till PayDay.");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You dont towed a car !");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not in a Tow Truck !");
}
}
}
}