Can someone help me?
#1

i want to add this system which will give 25 score and 15000 cash when new players will registered in my server.
My gamemode is COD/TDM(for one time only)
Reply
#2

Set the players score when the player registers.

pawn Код:
SetPlayerScore(playerid, 25);
And give the Player money or set the players money.

pawn Код:
GivePlayerMoney(playerid, 15000);

//Or

SetPlayerMoney(playerid, 15000);
Reply
#3

where i need to add this code in script plz suggest me
Reply
#4

I'd say on OnPlayerConnect()
or add it in your login/register system
Reply
#5

public OnPlayerLogin(playerid, password[])

Add it here
PlayerInfo[playerid][pLevel] = 25;
PlayerInfo[playerid][pCash] = 15000;
Reply
#6

dude can u give this code which is already add this system
-sorry for my bad english
Reply
#7

Quote:
Originally Posted by Shayba
Посмотреть сообщение
public OnPlayerLogin(playerid, password[])

Add it here
PlayerInfo[playerid][pLevel] = 25;
PlayerInfo[playerid][pCash] = 15000;
i think this code will give 25 score and 15000 cash for all players which are already registered!!
Reply
#8

Be given to those who register
Reply
#9

Quote:
Originally Posted by Shayba
Посмотреть сообщение
Be given to those who register
sir!! can u make proper code for this system and post it to here plz plz plz sir!!!
Reply
#10

Quote:
Originally Posted by Aagya
Посмотреть сообщение
i think this code will give 25 score and 15000 cash for all players which are already registered!!
Yes, that's only for registered members

Use

pawn Код:
SetPlayerScore(playerid, 25);
and

pawn Код:
GivePlayerMoney(playerid, 15000);
under

pawn Код:
public OnPlayerConnect(playerid)
It'll be like

pawn Код:
public OnPlayerConnect(playerid)
{
    GivePlayerMoney(playerid, 15000);
    SetPlayerScore(playerid, 25);
    return 1;
}
*This is for everyone (public) I didn't read all your post so, this won't work for you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)