if(strcmp(cmd,"/pray",true)==0)
{
if(PlayerToPoint(9, playerid,-1988.3954,1117.8425,54.4733)) // ¾Ô¡Ñ´
{
if(IsPlayerConnected(playerid))
{
new amen = 1 + random (9);
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_GREY, " ŧö¡è͹¤ÃѺæ!");
return 1;
}
if(SpamAmen[playerid] >= MAX_SPAM)
{
SendClientMessage(playerid,COLOR_WHITE," Payday ¹Õé¤Ø³ÊÇ´Á¹µìä»áÅéÇ ");
return 1;
}
SpamAmen[playerid] += 1800;
if(IsPlayerConnected(playerid))
{
if(amen == 1)
{
WantedPoints[giveplayerid] = 1; //´ÒÇ << ·ÕèâªÇ㹤ÓÊÑè§/wanted
WantedLevel[giveplayerid] = 1;//¨Ó¹Ç¹´ÒÇ
SetPlayerStar(giveplayerid);//¨Ó¹Ç¹´ÒÇ㹠˹éÒ¨Í
SendClientMessage(playerid, 0x8DC90FF, " ¤Ø³ä´é¾Ã¨Ò¡µÕëãË è·ÓãËé¤ÇÒÁµéͧ¡ÒõÑÇËÒÂä» !");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** %s ¹ÐâÁ µÑÊÊÐ ÀФÐÇÐâµ ÍÐÃÐËÐâµ ÊÑÁÁÒÊÑÁ¾Ø·¸ÑÊÊÐ ", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
if(amen == 2)
{
WantedPoints[giveplayerid] = 0; //´ÒÇ << ·ÕèâªÇ㹤ÓÊÑè§/wanted
WantedLevel[giveplayerid] = 0;//¨Ó¹Ç¹´ÒÇ
SetPlayerStar(giveplayerid);//¨Ó¹Ç¹´ÒÇ㹠˹éÒ¨Í
SendClientMessage(playerid, 0x8DC90FF, " ¤Ø³ä´é¾Ã¨Ò¡µÕëãË è·ÓãËé¤ÇÒÁµéͧ¡ÒõÑÇËÒÂä» !");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** %s ¹ÐâÁ µÑÊÊÐ ÀФÐÇÐâµ ÍÐÃÐËÐâµ ÊÑÁÁÒÊÑÁ¾Ø·¸ÑÊÊÐ ", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
if(amen == 3)
{
new mamen = 10000 + random (100000);
format(string, sizeof(string), "* ¤Ø³à¨ÍÊÁºÑµÔÁËÒÈÒŨҡ»ëÒµé¹ $%d.", mamen);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
SafeGivePlayerMoney(playerid, mamen);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** %s ¹ÐâÁ µÑÊÊÐ ÀФÐÇÐâµ ÍÐÃÐËÐâµ ÊÑÁÁÒÊÑÁ¾Ø·¸ÑÊÊÐ ", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
if(amen == 4)
{
new mamen = 1000 + random (2000);
format(string, sizeof(string), "* ¤Ø³ä´éÅÒÀÅÍ $%d.", mamen);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
SafeGivePlayerMoney(playerid, mamen);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** %s ¹ÐâÁ µÑÊÊÐ ÀФÐÇÐâµ ÍÐÃÐËÐâµ ÊÑÁÁÒÊÑÁ¾Ø·¸ÑÊÊÐ ", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
if(amen == 5)
{
new mamen = 1000 + random (5000);
format(string, sizeof(string), "* ¤Ø³ä´éà§Ô¹Ê´ÃÒ¤Ò $%d.", mamen);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
SafeGivePlayerMoney(playerid, mamen);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** %s ¹ÐâÁ µÑÊÊÐ ÀФÐÇÐâµ ÍÐÃÐËÐâµ ÊÑÁÁÒÊÑÁ¾Ø·¸ÑÊÊÐ ", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
if(amen == 6)
{
PlayerInfo[giveplayerid][pExp] = 1;
SendClientMessage(playerid, 0x00FFFFFF, " ⪤´ÕÁÒ¡ä´é EXP +1 ¨Ò¡à·Ç´Ò!");
SendClientMessage(playerid, 0xFFFFFFFF, " ÍÕ¡ 30 ¹Ò·Õä´éÍÕ¡¤ÃÑé§ !");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** %s ¹ÐâÁ µÑÊÊÐ ÀФÐÇÐâµ ÍÐÃÐËÐâµ ÊÑÁÁÒÊÑÁ¾Ø·¸ÑÊÊÐ ", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
if(amen == 7)
{
PlayerInfo[giveplayerid][pExp] = 2;
SendClientMessage(playerid, 0x00FFFFFF, " ⪤´ÕÁÒ¡ä´é EXP +2 ¨Ò¡à·Ç´Ò!");
SendClientMessage(playerid, 0xFFFFFFFF, " ÍÕ¡ 30 ¹Ò·Õä´éÍÕ¡¤ÃÑé§ !");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** %s ¹ÐâÁ µÑÊÊÐ ÀФÐÇÐâµ ÍÐÃÐËÐâµ ÊÑÁÁÒÊÑÁ¾Ø·¸ÑÊÊÐ ", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
if(amen == 8)
{
PlayerInfo[giveplayerid][pExp] = 3;
SendClientMessage(playerid, 0x00FFFFFF, " ⪤´ÕÁÒ¡ä´é EXP +3 ¨Ò¡à·Ç´Ò!");
SendClientMessage(playerid, 0xFFFFFFFF, " ÍÕ¡ 30 ¹Ò·Õä´éÍÕ¡¤ÃÑé§ !");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** %s ¹ÐâÁ µÑÊÊÐ ÀФÐÇÐâµ ÍÐÃÐËÐâµ ÊÑÁÁÒÊÑÁ¾Ø·¸ÑÊÊÐ ", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
if(amen == 9)
{
PlayerInfo[giveplayerid][pExp] = 4;
SendClientMessage(playerid, 0x00FFFFFF, " ⪤´ÕÁÒ¡ä´é EXP +4 ¨Ò¡à·Ç´Ò!");
SendClientMessage(playerid, 0xFFFFFFFF, " ÍÕ¡ 30 ¹Ò·Õä´éÍÕ¡¤ÃÑé§ !");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** %s ¹ÐâÁ µÑÊÊÐ ÀФÐÇÐâµ ÍÐÃÐËÐâµ ÊÑÁÁÒÊÑÁ¾Ø·¸ÑÊÊÐ ", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " äÁèä´éÍÂÙè·Õè¨Ø´ÊÇ´Á¹µì !");
return 1;
}
}
return 1;
} |