28.05.2011, 08:46
Ok.
Like some of you know in the last 24 I was asking for help in my new script.
now i have another problem! that not in Errors and Warnings!
i have some cars in the script. and the cars is owned by factions! and i want to set a team of cars that JUST the factions that own the team of the cars can enter them.
Those the cars:
Its currectly never mine how to join a faction and where it saved right?
anyway i want to do that the vehicles of Judas will be able to drive just to Judas members!
and the varible of the Player faction is:
Ok now you know my basics of my question. so.... How to make teams to cars? and just the Factions that own the car can enter them? pls HELP![Huh?](images/smilies/confused.gif)
![Confused](images/smilies/confused.png)
Like some of you know in the last 24 I was asking for help in my new script.
now i have another problem! that not in Errors and Warnings!
i have some cars in the script. and the cars is owned by factions! and i want to set a team of cars that JUST the factions that own the team of the cars can enter them.
Those the cars:
pawn Код:
AddStaticVehicle(411,2253.9971,-1699.3213,13.4770,266.5998,0,0);// Sudden Death (faction)
AddStaticVehicle(424,2254.8110,-1695.9163,13.5258,263.5016,0,0);// Sudden Death (faction)
AddStaticVehicle(487,2241.7720,-1707.6130,23.0380,267.0402,0,0);// Sudden Death (faction)
AddStaticVehicle(463,2486.1377,-1953.2212,12.9675,357.1926,155,155);// Judas (faction)
AddStaticVehicle(463,2489.1641,-1954.0009,12.9606,352.1725,155,155);// Judas (faction)
AddStaticVehicle(463,2482.6016,-1953.5052,12.9651,356.4863,155,155);// Judas (faction)
AddStaticVehicle(463,2492.2593,-1953.1180,12.9644,0.5535,155,155);// Judas (faction)
AddStaticVehicle(463,2495.7893,-1953.6471,12.9637,355.2355,155,155);// Judas (faction)
AddStaticVehicle(536,2045.2780,-1731.0930,13.2846,0.8217,175,175);// Ballas (faction
AddStaticVehicle(509,2045.1404,-1708.1598,13.0648,274.8324,175,175);// Ballas (faction
AddStaticVehicle(467,2038.2916,-1704.0177,13.2889,180.3633,175,175);// Ballas (faction
AddStaticVehicle(404,2037.9335,-1729.7744,13.2794,180.1528,175,175);// Ballas (faction
anyway i want to do that the vehicles of Judas will be able to drive just to Judas members!
and the varible of the Player faction is:
pawn Код:
new faction[playerid]; // in the top of the script
faction[playerid] = 0; // To set the faction of player (0 Unfactioned, 1 Sudden Death, 2 Judas, 3 Ballas, Maybe more)
if(faction[playerid] == 1) return SendClientMessage(playerid, red, "אתה בקבוצה סאדן דאס"); // Translate from hebrew: You are in Sudden Death
dini_IntSet(playerfile, "Faction", faction[playerid]); // To put the faction in a file
faction[playerid] = dini_Int(playerfile, "Faction"); // To give the player his faction after connecting
![Huh?](images/smilies/confused.gif)
![Confused](images/smilies/confused.png)
![Huh?](images/smilies/confused.gif)