Thread: [Ajuda] Sistema de salvar armas
View Single Post
Old 03/03/2018, 05:42 PM   #2
GuiKommander
Gangsta
 
GuiKommander's Avatar
 
Join Date: Dec 2016
Posts: 827
Reputation: 25
Default Re: Sistema de salvar armas

Uma das Maneiras essa..
PHP Code:
#include <a_samp>
#include <DOF2>

enum PlayerInfo
{
    
Slot_1,
    
Balas_Slot1
}
new 
pInfo[MAX_PLAYERS][PlayerInfo];

public 
OnPlayerConnect(playerid)
{
    
SetSpawnInfo(playerid0pInfo[playerid][Skin], XYZTpInfo[playerid][Slot_1], pInfo[playerid][Balas_Slot1], pInfo[playerid][Slot_2], pInfo[playerid][Balas_Slot2], pInfo[playerid][Slot_3], pInfo[playerid][Balas_Slot3]); // Uma das Maneiras  essa.
    
SpawnPlayer(playerid);
    return 
1;

http://wiki.sa-mp.com/wiki/SetSpawnInfo
GuiKommander is offline   Reply With Quote