/ftow - 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: /ftow (
/showthread.php?tid=190753)
/ftow -
Mystique - 16.11.2010
Why does this return Server Unknown Command in game?
pawn Код:
if(strcmp(cmd, "/ftow", true) ==0)
{
if(PlayerInfo[playerid][LoggedIn] == 1)
{
if(PlayerInfo[playerid][Faction] == 1)
{
if(PlayerInfo[playerid][Rank] >= 4)
{
for(new i = 0;i<MAX_VEHICLES;i++)
{
if(CarSystem[i][Carfaction] == PlayerInfo[playerid][Faction])
{
SetVehicleToRespawn(i);
}
}
SendClientMessage(playerid, COLOR_WHITE, "You have successfully faction towed your faction vehicles");
}
else return SendClientMessage(playerid, COLOR_RED, "You need to be aleast rank 4 to faction tow.");
}
else return SendClientMessage(playerid, COLOR_RED, "You are not in a faction.");
}
else return SendClientMessage(playerid, COLOR_RED, "You need to be logged in to perform this command.");
return 1;
}
Re: /ftow -
The_Moddler - 16.11.2010
pawn Код:
if(!strcmp(cmd, "/ftow", true))
{
if(PlayerInfo[playerid][LoggedIn] == 1)
{
if(PlayerInfo[playerid][Faction] == 1)
{
if(PlayerInfo[playerid][Rank] >= 4)
{
for(new i = 0;i<MAX_VEHICLES;i++)
{
if(CarSystem[i][Carfaction] == PlayerInfo[playerid][Faction])
{
SetVehicleToRespawn(i);
}
}
SendClientMessage(playerid, COLOR_WHITE, "You have successfully faction towed your faction vehicles");
}
else return SendClientMessage(playerid, COLOR_RED, "You need to be aleast rank 4 to faction tow.");
}
else return SendClientMessage(playerid, COLOR_RED, "You are not in a faction.");
}
else SendClientMessage(playerid, COLOR_RED, "You need to be logged in to perform this command.");
return 1;
}
Re: /ftow -
Mystique - 16.11.2010
Still not working. It started saying this when I changed from MAX_CARS to MAX_VEHICLES.
Re: /ftow -
dark_clown - 16.11.2010
pawn Код:
if(!strcmp(cmd, "/ftow", true))
{
if(PlayerInfo[playerid][LoggedIn] == 1)
{
if(PlayerInfo[playerid][Faction] == 1)
{
if(PlayerInfo[playerid][Rank] >= 4)
{
for(new i = 0;i<MAX_VEHICLES;i++)
{
if(CarSystem[i][Carfaction] == PlayerInfo[playerid][Faction])
{
SetVehicleToRespawn(i);
}
SendClientMessage(playerid, COLOR_WHITE, "You have successfully faction towed your faction vehicles");
}
else return SendClientMessage(playerid, COLOR_RED, "You need to be aleast rank 4 to faction tow.");
}
else return SendClientMessage(playerid, COLOR_RED, "You are not in a faction.");
}
else SendClientMessage(playerid, COLOR_RED, "You need to be logged in to perform this command.");
}
return 1;
}