/tow command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /tow command (
/showthread.php?tid=169755)
/tow command -
Ne0 - 20.08.2010
i have the Tow Car Company faction and the /tow command not work
please help me with another command for this faction!
i'm sory for my english but i'm from romania!
Re: /tow command -
killer98p - 20.08.2010
Provide your PAWN code. I will take a look at it.
Re: /tow command -
Ne0 - 20.08.2010
Код:
//-------------------------------------[TOW]--------------------------------------------
if(strcmp(cmdtext, "/tow", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
if(IsPlayerInVehicle(playerid, 272) || IsPlayerInVehicle(playerid, 273) || IsPlayerInVehicle(playerid, 274) || IsPlayerInVehicle(playerid, 275))
{
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
{
if(PlayerInfo[playerid][pTow] >= 1)
{
PlayerInfo[playerid][pTow] -= 1;
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 !");
}
}
}
}
That is command
Re: /tow command -
killer98p - 20.08.2010
Provide the error codes when you compiled the script.
EDIT: Why you are so slow man? You want help or what?
Read
this by the way. You may find the solution. If you cannot do that then let me know. I will try fix the code for you.
Re: /tow command -
Gabb0411 - 20.08.2010
Код:
if(strcmp(cmdtext, "/tow", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{
if(IsPlayerInVehicle(playerid, 156 ) || IsPlayerInVehicle(playerid, 157) || IsPlayerInVehicle(playerid, 159) || IsPlayerInVehicle(playerid, 160))
{
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
{
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 dont towed a car !");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not in a Tow Truck !");
}
}
}
Ia de-aici , asta sigur merge , la mine functioneaza.. nu esti Ne0 de pe B-Zone ?
Re: /tow command -
killer98p - 20.08.2010
Oh my god.. this is English section. Speak Romanian in Romanian section. Also this isn't the solution. He should read wiki of SA-MP and investigate the problem to find out the solution...
Re: /tow command -
Ne0 - 20.08.2010
Ba da gabb mersi mult de tot
![Cheesy](images/smilies/biggrin.png)
Am luat o pauza cred ca m-a dat afara din fbi
Incerc pentru a doua oara sa imi deschid un srv de samp dar nush ce va iesi de data asta trebuie sa am mai multa rabdar mai ales cu playerii!
Re: /tow command -
Ne0 - 20.08.2010
It still doesn't work
Other help please?
Re: /tow command -
wups - 20.08.2010
WHAT IS THE ERROR?
Re: /tow command -
Ne0 - 20.08.2010
I write /tow and no work
i need a new good command for tat faction to tow cars