01.02.2015, 20:57
PHP код:
case DIALOG_EVENTNAME:
{
if(response)
{
new ename[50],string[100];
if(strcmp(ename,"%s",true))//check this
{
playerid = adminevent[playerid];
eventteleports = 1;
eventon = 1;
if(eventamount == 1)
{
format(string,sizeof(string),"~b~ %s~w~ has started! price : ~g~$~w~10,000~n~~w~type ~r~ /yes~w~ to join!",ename);
GameTextForAll(string,3000,5);
}
if(eventamount == 2)
{
format(string,sizeof(string),"~b~ %s~w~ has started! price : ~g~$~w~100,000~n~~w~type ~r~ /yes~w~ to join!",ename);
GameTextForAll(string,3000,5);
}
if(eventamount == 3)
{
format(string,sizeof(string),"~b~ %s~w~ has started! price : ~g~$~w~500,000~n~~w~type ~r~ /yes~w~ to join!",ename);
GameTextForAll(string,3000,5);
}
if(eventamount == 1)
{
format(string,sizeof(string),"~b~ %s~w~ has started! price : ~g~$~w~1,000,000~n~~w~type ~r~ /yes~w~ to join!",ename);
GameTextForAll(string,3000,5);
}
}
}