SetPlayerChatBubble
#1

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
Reply
#2

sry for spam , can someone help me?
Reply
#3

Do you have a login system? If yes, then show how you load/save other data.
Reply
#4

@First stop bumbing theards kiddys -.-

Which File Saving System are you using ?
Reply
#5

I have but i can't find him , can i send u gamemode in pm?
Reply
#6

Why you dont paste it here ?
Reply
#7

Search the messages you see when you login.
Reply
#8

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
Reply
#9

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);
}

Reply
#10

Show OnPlayerLogin function and use [ pawn ] [ /pawn ] tags to show code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)