Jump to content

Need some help


Mike269

Recommended Posts

--Gang Privates-- 
function spawnProelite (prevA, curA, spawn) -- 
    if ( getElementData(source, "gang") == "peF" ) then 
        spawnPlayer (source, 2529.24609375, 2024.0888671875, 11.18254, 181, 285, 0, 0, clan1) -- 
     setPlayerMoney ( source, 2000 )     
    fadeCamera (source, true) 
    setCameraTarget (source, source) 
    giveWeapon ( source, 9, 1) 
    giveWeapon ( source, 24, 120) 
    giveWeapon ( source, 28, 550) 
    giveWeapon ( source, 31, 450) 
    else 
    outputChatBox("You are not from this Clan !", source, 100, 100, 100, false)  
    end 
end 
addEvent( "spawnPef", true ) -- 
addEventHandler( "spawnPef", root, spawnProelite ) -- 

I want to make that I can only spawn as peF, only if im in team "Dark Crew" or how I can connect this script with:

https://community.multitheftauto.com/in ... ls&id=8992

if im in gang "Dark Crew" I can spawn with Dark Crew skin in base

spawn system - https://community.multitheftauto.com/in ... ls&id=8320

Link to comment
  
gangs = {  
["peF"] = true, 
["SWAT"] = true, 
["Dark Crew"] = true,  -- you can add/remove gangs 
["NoobGang"] = true, 
["TestGang"] = true  --- NOTE: don't need to add comma to the last one.  
} 
function spawnProelite (prevA, curA, spawn)  
    if gangs[getElementData(source, "gang")] then  
        spawnPlayer (source, 2529.24609375, 2024.0888671875, 11.18254, 181, 285, 0, 0, clan1) -- 
     setPlayerMoney ( source, 2000 )     
    fadeCamera (source, true) 
    setCameraTarget (source, source) 
    giveWeapon ( source, 9, 1) 
    giveWeapon ( source, 24, 120) 
    giveWeapon ( source, 28, 550) 
    giveWeapon ( source, 31, 450) 
    else 
    outputChatBox("You are not from this Clan !", source, 100, 100, 100, false) 
    end 
end 
addEvent( "spawnPef", true ) -- 
addEventHandler( "spawnPef", root, spawnProelite ) -- 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...