02.09.2015, 11:38
i have this inside the dialog but IsPlayerConnect not work
PHP код:
if(dialogid == DIALOG_F_PANEL3)
{
if(response)
{
new id, fp,fpsendername[25],giveplayer[25],fpstring[256];
if(sscanf(inputtext, "ui", id, fp)) return SCM(playerid,COLOR_WHITE,"{FF0000}Error:{FFFFFF} Syntaxa trebuie sa fie [ID] [ 0 - Fara Faction Punish 1 - Cu Faction Punish ] !");
if(PlayerInfo[id][pLeader] >= 1) return SCM(playerid,COLOR_WHITE,"{FFB870}Acest player este lider.");
{
if(IsPlayerConnected(id))
{
//code here
}
else return SCM(playerid, COLOR_WHITE, "This player is not connected.");
}