Jump to content
  • 0

pomoc Předělávka PM v dialogu na normál


curdanek

Dotaz

Ahoj,

mám problém, mám mod Street Life a potřebuji předělat Dialogové okno na PM.

 

Pawn Code:

dcmd_pm(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new id = strval(params);
new text1[128];
 
if(IsPlayerConnected(id))
{
   new Name2[24];
GetPlayerName(id,Name2,24);
   format(text1, 128, "{ffff70}PM pro: {ff0000}%s (%d)", Name2, id);
}
 
if(!strlen(params)) return SendClientMessage(playerid,COLOR_WARNING,"[  !  ]{ffffff} /pm [ ID ]");
else if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_WARNING,"[  !  ]{ffffff} Hráč se zadaným ID není na serevru !");
else if(IsPlayerNPC(id)) return SendClientMessage(playerid,COLOR_WARNING,"[  !  ]{ffffff} Tohle je NPC !");
else
{
   Player[playerid][saveID] = id;
 
ShowPlayerDialog(playerid, Dialog_PM, DIALOG_STYLE_INPUT, text1, "{c5c5c5}Zadej text zprávy:", "Poslat", "Cancel");
}
}
return 1;
}
 
Potřebuji to jen na normální odesílání /pm [ ID ] [ TEXT ] místo tohoto /pm [ ID ] a otevře se Dialog...
 
Díky za všechny odpovědi :)
Link to comment
Share on other sites

0 odpovědí na tuto otázku

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...