How to make..
#1

Hello friend.I want to ask you how to make newguy system and the system that hes not playing whenhe connects , that his playing when he spawns.
Reply
#2

Can you elaborate it a lit bit more? coz i am not able to understand wat ur trying to say.
Reply
#3

I want to make new guy system and enum that he is playing when he spawns.

Example:

new bool:Logged[MAX_PLAYERS];

enum item
{
bool:newguy,
boollay
}
new pInfo[MAX_PLAYERS][item];

public OnPlayerConnect(playerid)
{

Logged[playerid] = false;
pInfo[playerid][play] = false;

public OnPlayerDisconnect(playerid, reason)
{
if(pInfo[playerid][play])
{
SaveData(playerid);
}
return 1;
}

public OnPlayerSpawn(playerid)
{

if(pInfo[playerid][newguy])
{
pInfo[playerid][skin]=GetPlayerSkin(playerid);
GivePlayerMoney(playerid,1000);
pInfo[playerid][job]=0;
pInfo[playerid][bank]=0;
pInfo[playerid][clothes]=0;
if(pInfo[playerid][skinas] == 18
SetPlayerSkin(playerid,18;
SetPlayerPos(playerid,-2654.9724,639.2270,14.4531);

if(pInfo[playerid][skin] == 93)
SetPlayerSkin(playerid,93);
SetPlayerPos(playerid,-2654.9724,639.2270,14.4531);

pInfo[playerid][play] = true;
SaveData(playerid);
}
if(!pInfo[playerid][newguy])
{
pInfo[playerid][play] = true;
LoadData(playerid);
}

return 1;
}

But im using Y_ini

http://forum.sa-mp.com/showthread.ph...ighlight=Y_ini
Reply
#4

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)