21.09.2013, 23:21
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.
So like this.
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."); } |
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."); } |