30.08.2014, 15:01
CMD /rpquiz not respond , when typing /rpquiz , playerdialog not show
Sorry my bad english
This script
Sorry my bad english
This script
pawn Код:
CMD:rpquiz(playerid, params[])
{
if (!IsPlayerInRangeOfPoint(playerid,2.0,361.8299,173.6017,1008.3828)) return SendClientMessageEx(playerid,COLOR_WHITE,"(( [INFO]: Kamu harus berada di dalam city hall ))");
if(PlayerInfo[playerid][pSelesai] > 0)
{
new string[128];
format(string, sizeof(string), "(( [INFO]: Kamu belum bisa RPQUIZ, tunggu %d detik lagi ))",PlayerInfo[playerid][pSelesai]);
SendClientMessageEx(playerid, COLOR_YELLOW,string);
return 1;
}
if(PlayerInfo[playerid][pRPquiz] == 0)
{
ShowPlayerDialog(playerid, RPQUIZ1, DIALOG_STYLE_LIST, "1.Apa itu MG ?", "Mata Gamers\nMinta Gamers\nMeta Gaming", "Ya", "Menyerah");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "(( [INFO]: Kamu sudah menyelesaikan RPQUIZ! ))");
return 1;
}
return 1;
}