SetPlayerChatBubble - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetPlayerChatBubble (
/showthread.php?tid=349213)
SetPlayerChatBubble -
Stereotype - 08.06.2012
i use GFRP and i dont know how to set player to be Diplomate
i maked
Код:
enum pInfo
{
pDiplomate,
and i maked
Код:
public ChatDouble()
{
foreach(Player,i)
{
if(PlayerInfo[i][pDiplomate] == 1)
{
SetPlayerChatBubble(i, "[ DIPLOMATE ]", COLOR_RED, 30.0,60000);
}
How i should make to save if pDiplomate and to load it OnPlayerConnect and to save it OnPlayerDisconnect
and how i can make command /setpdiplomate - Set player to pDiplomate
Re: SetPlayerChatBubble -
Stereotype - 08.06.2012
sry for spam , can someone help me?
Re: SetPlayerChatBubble -
MadeMan - 08.06.2012
Do you have a login system? If yes, then show how you load/save other data.
AW: SetPlayerChatBubble -
Tigerkiller - 08.06.2012
@First stop bumbing theards kiddys -.-
Which File Saving System are you using ?
Re: SetPlayerChatBubble -
Stereotype - 08.06.2012
I have but i can't find him , can i send u gamemode in pm?
AW: SetPlayerChatBubble -
Tigerkiller - 08.06.2012
Why you dont paste it here ?
Re: SetPlayerChatBubble -
MadeMan - 08.06.2012
Search the messages you see when you login.
Re: SetPlayerChatBubble -
Stereotype - 08.06.2012
Quote:
Originally Posted by Stereotype
I have but i can't find him , can i send u gamemode in pm?
|
EDIT : I know i dont fell good about bumping , but i need help
Re: SetPlayerChatBubble -
Stereotype - 08.06.2012
This is login about login
Quote:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new sendername[MAX_PLAYER_NAME];
new string[128];
if(response)
{
if(dialogid == 1 || dialogid == 2)
{
if(strlen(inputtext))
{
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}
else
{
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname) );
format(loginstring,sizeof(loginstring),"POGRESNA SIFRA\nUnesena lozinka se ne poklapa sa accountom!",loginname);
ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT ,"Login",loginstring,"Prijava","Izlaz");
gPlayerLogTries[playerid] += 1;
}
}
if(dialogid == 2)
{
if(strlen(inputtext))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
{
SendClientMessage(playerid, COLOR_YELLOW, "Ime je vec preuzeto, molimo izaberite neko drugo.");
fclose(hFile);
return 1;
}
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
Encrypt(tmppass);
OnPlayerRegister(playerid,tmppass);
}
|
Re: SetPlayerChatBubble -
MadeMan - 08.06.2012
Show OnPlayerLogin function and use [ pawn ] [ /pawn ] tags to show code.