Como aсadir armas a las facciones al spawnear
#1

Me ayudarian con esto,uso zcmd.
Reply
#2

pawn Код:
public OnPlayerSpawn(playerid
{
    if(GetPlayerTeam(playerid) == TEAM_POLICE)
        GivePlayerWeapon(playerid, 31, 5000);//le da un m4
    else if(GetPlayerTeam(playerid) == TEAM_HITMAN)
        GivePlayerWeapon(playerid, 30, 100);//le da un AK47
    return 1;
}
Info aqui:
https://sampwiki.blast.hk/wiki/Weapons
https://sampwiki.blast.hk/wiki/GivePlayerWeapon
Reply
#3

Osea asi yyo tengo mis pinfo de facc [pFMember],como seria ?
Reply
#4

cambia "GetPlayerTeam" por tus pInfo y cambia tambien el TEAM_POLICE por tus definiciones de fracciones (#define POLICIAS 1) o no se como lo tengas
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)