- 0
Ajutor comanda /towls
-
Similar Content
-
- 4 replies
- 131 views
-
- 1 reply
- 232 views
-
- 7 replies
- 199 views
-
Comanda /fly
By xLinix96,
- 6 replies
- 3,263 views
-
- 10 replies
- 1,200 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
diablo16
Va rog sa ma ajutati cu ceva la aceasta comanda as vrea ca cei din T.T.C sa poata dece mai multe masini pe PayDay nu doar o masina
Aceasta este comanda va rog ajutati-ma !
[pawn]if(strcmp(cmd, "/tow", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /tow [LS or SF]");
return 1;
}
new newcar = GetPlayerVehicleID(playerid);
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(strcmp(x_nr,"ls",true) == 0)
{
if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
if(!IsATowcar(newcar))
{
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
{
if(PlayerInfo[playerid][pTow] >= 3)
{
PlayerInfo[playerid][pTow] -= 3;
CP[playerid] = 111;
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 !");
}
}
}
}
new x_nr[256];
new newcar = GetPlayerVehicleID(playerid);
x_nr = strtok(cmdtext, idx);
if(strcmp(x_nr,"sf",true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
if(!IsATowcar(newcar))
{
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
{
if(PlayerInfo[playerid][pTow] >= 3)
{
PlayerInfo[playerid][pTow] -= 3;
CP[playerid] = 111;
SetPlayerCheckpoint(playerid, 1617.2562,-2314.1616,13.5537, 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 !");
}
}
}
return 1;
}
}[/pawn]
Multumesc anticipat.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts