January 3rd, 2008
|
#1 |
| I'm too cool to Post
Join Date: November 1st, 2007 Status: Available Rep Power: 0 | How to get players respawn in vehicles with lua? There is something wrong in my lua: Code: OnCharacterSpawn(
function(player)
if GetObjectTeam(GetCharacterUnit(player)) == 2 then
If GetCommandPostTeam("tfa-cp2") == 2 then
EnterVehicle(player, "Vehspawn1")
end
end
end
) I just want that if i choose team 2 (cis in my case) and if i choose the cp named "tfa-cp2", that i respawn in a vehicle.
EDIT: the "Vehspawn1" is the name of my vehicle
Can someone help me? Thanks in advance! |
|
Last edited by Black Eye; January 3rd, 2008 at 05:16 AM.
Reason: Vehicle name
|
| |