Welcome message, PayDay systeme
#1

I have two questions.
First How can I make welcome message such
Welcome to LSPD Faction
or
Welcome to Mechanic job

Seconde
I'm using CarroT GM " UG-RP "
I want to make peoles get payday only when they are in the main bank.
Reply
#2

Quote:
Originally Posted by Clad
Посмотреть сообщение
I have two questions.
First How can I make welcome message such
Welcome to LSPD Faction
or
Welcome to Mechanic job

Seconde
I'm using CarroT GM " UG-RP "
I want to make peoles get payday only when they are in the main bank.
You have not provided enough informations to us.

Use something like this..

pawn Код:
if(GetPVarInt(playerid, "member") == 1)
{
   SendClientMessage(playerid, 0xFFFFFFAA, "Welcome to L.A.P.D");
}
if(GetPVarInt(playerid, "job") == 15)
{
   SendClientMessage(playerid, 0xFF1535AA, "Welcome to Mechanic job");
}
And yep.. for payday..

Just add:

Код:
if(IsPlayerInRangeOfPoint(playerid, Float:Radi, Float:Pos_X, Float:Pos_Y, Float:Pos_Z))
{
   // PayDay stuff
}
else if(!IsPlayerInRangeOfPoint(playerid, Float:Radi, Float:Pos_X, Float:Pos_Y, Float:Pos_Z))
{
   // returns message or whatever if they are not in main bank!
}
Reply
#3

I have UG:RP GM
What I want is when a player log-in they show to others
Welcome to LSPD : PlayerX same color us his faction
Reply
#4

Quote:
Originally Posted by Clad
Посмотреть сообщение
I have UG:RP GM
What I want is when a player log-in they show to others
Welcome to LSPD : PlayerX same color us his faction
Were you referring to this:

Код:
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, 24);
new String[64];
if(GetPVarInt(playerid, "member")  == 1)
{
   format(String, 64, "Welcome to LAPD : Player %s has connected!", pName);
   foreach(Player, lapd)
   if(GetPVarInt(lapd, "member") == 1)
   SendClientMessage(lapd, 0xFFFFFFAA, String);
}
Reply
#5

Quote:
Originally Posted by erminpr0
Посмотреть сообщение
Were you referring to this:

Код:
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, 24);
new String[64];
if(GetPVarInt(playerid, "member")  == 1)
{
   format(String, 64, "Welcome to LAPD : Player %s has connected!", pName);
   foreach(Player, lapd)
   if(GetPVarInt(lapd, "member") == 1)
   SendClientMessage(lapd, 0xFFFFFFAA, String);
}
Going to test it, Thanks
Reply
#6

https://sampforum.blast.hk/showthread.php?tid=447813
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)