Multiple values
#1

Hello, im new to SA-MP scripting and I decided to start learning by editing game modes and seeing what they do.

Im trying to get the following script to allow multiple factions in the cars.

Quote:

else if(IsNGVehicle(vehicleid) && PlayerInfo[playerid][pFac] != 7)
{
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SendClientMessage(playerid, COLOR_ORANGE, " You can't start the engine as it belongs to the NG.");
}

So like this.

Quote:

else if(IsNGVehicle(vehicleid) && PlayerInfo[playerid][pFac] != 7 && 8 && 3 && 4)
{
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SendClientMessage(playerid, COLOR_ORANGE, " You can't start the engine as it belongs to the NG.");
}

Reply


Messages In This Thread
Multiple values - by Alxspiker - 21.09.2013, 23:21
Re: Multiple values - by Dragony92 - 21.09.2013, 23:30
Re: Multiple values - by Alxspiker - 21.09.2013, 23:30

Forum Jump:


Users browsing this thread: 1 Guest(s)