Need help with my /reply and /ignore command -
Sc0pion - 15.03.2015
Fixed!
Re: Need help with my /reply and /ignore command -
NinjahZ - 16.03.2015
Tried?
pawn Код:
new Float:animX, Float:animY, Float:animZ;
new anim = GetPlayerAnimationIndex(i);
GetPlayerPos(i, animX, animY, animZ);
if((anim >= 1538) && (anim <= 1542) && animZ > 5 )
{
if(IsPlayerInRangeOfPoint(i, 50.0,-607.6102,2167.9099,40.0407 ))
{
return 1;
}
else if(IsPlayerInRangeOfPoint(i, 50.0,-864.9051,2163.2908,40.4246 ))
{
return 1;
}
else if(IsPlayerInRangeOfPoint(i, 50.0,-963.2916,2451.0042,40.4246 ))
{
return 1;
}
else if(IsPlayerInRangeOfPoint(i, 50.0,-1073.5398,2686.9316,40.4246 ))
{
return 1;
}
else if(IsPlayerInRangeOfPoint(i, 50.0,-1133.2911,2776.9795,40.4246 ))
{
return 1;
}
else if(IsPlayerInRangeOfPoint(i, 50.0,-937.1145,2678.2732,40.4246 ))
{
return 1;
}
else if(IsPlayerInRangeOfPoint(i, 50.0,-1182.6296,2164.0837,40.4246 ))
{
return 1;
}
else if(IsPlayerInRangeOfPoint(i, 50.0,-1305.4430,2113.1953,40.4246 ))
{
return 1;
}
else if(IsPlayerInRangeOfPoint(i, 50.0,-1369.6489,2114.4470,40.4246 ))
{
return 1;
}
else if(IsPlayerInRangeOfPoint(i, 50.0,2021.3466,1673.1593,8.0484 ))
{
return 1;
}
else if(IsPlayerInRangeOfPoint(i, 50.0,2143.2383,1285.6169,7.9766 ))
{
return 1;
}
else if(IsPlayerInRangeOfPoint(i, 50.0,2101.0918,1910.8403,9.0792 ))
{
return 1;
}
else
{
SendClientMessage(playerid, -1,"You have been banned because you were not......");
Ban(i);
}
}
Re: Need help with my /reply and /ignore command -
CalvinC - 16.03.2015
Can you show your PM command?
Quote:
Originally Posted by NinjahZ
Tried?
|
And also, this isn't even related to his problem?
Re: Need help with my /reply and /ignore command -
Sc0pion - 16.03.2015
Fixed!
Re: Need help with my /reply and /ignore command -
Sc0pion - 16.03.2015
Fixed!
Re: Need help with my /reply and /ignore command -
X337 - 16.03.2015
What about this?
Код:
CMD:privatemessage(playerid,params[])
{
new targetid, msg[256];
if(sscanf(params, "us[256]", targetid, msg)) return SendClientMessage(playerid, LIGHTBLUE,"[ USAGE: /privatemessage (name/id) (Message) ]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, red, "[ ERROR: Player is not connected! ]");
if(pm[targetid] == false) return SendClientMessage(playerid, red,"[ ERROR: Player has blocked private messages! ]");
if(IsIgnored[playerid][targetid]) return SendClientMessage(playerid, red, "[ ERROR: This player ignores you! ]");
if(targetid == playerid) return SendClientMessage(playerid, red, "[ ERROR: You can't send private message to yourself! ]");
new string[256], Name1[MAX_PLAYER_NAME], Name2[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name1, sizeof(Name1));
GetPlayerName(targetid, Name2, sizeof(Name2));
format(string, sizeof(string),"Private Message from %s(%d): %s", Name1, playerid, msg);
SendClientMessage(targetid,COLOR_PINK, string);
format(string, sizeof(string),"Private Message sent to %s(%d): %s", Name2, targetid, msg);
SendClientMessage(playerid,COLOR_PINK, string);
new File:file=fopen("/Database/Logs/PrivateMessageChatLog.log", io_append), hour, minute, second, year, month, day;
gettime(hour, minute, second);
getdate(year, month, day);
format(string, sizeof(string), "[%d/%d/%d | %d:%d:%d] [ %s to %s: %s ]\r\n", day, month, year, hour, minute, second, Name1, Name2, msg);
fwrite(file, string);
fclose(file);
LastPrivateMessage[targetid] = playerid;
return 1;
}
Re: Need help with my /reply and /ignore command -
Sc0pion - 16.03.2015
Fixed!
Re: Need help with my /reply and /ignore command -
X337 - 16.03.2015
Try that code,
You forgot to add LastPrivateMessage[playerid] when player use /pm commands.
So, the /reply command won't work fine.
Re: Need help with my /reply and /ignore command -
Sc0pion - 16.03.2015
Fixed!
Respuesta: Need help with my /reply and /ignore command -
JuanStone - 16.03.2015
Perhaps can help this.
http://forum.sa-mp.com/showpost.php?...0&postcount=11
Do not understand what exactly is your problem.