12.11.2012, 01:23
PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
if(CPS_IsPlayerInCheckpoint(playerid,assalto))
{
SendClientMessage(playerid,0x008040AA,"Inicio de um assalto!");
ShowPlayerDialog(playerid, 430, DIALOG_STYLE_MSGBOX,"Assalto", "Deseja fazer um assalto?", "Sim","Nao");
print("Tudo ok.\n");
return 1;
}
return 1;
}
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
printf("OnPlayerResponse(%i, %i, %i, %i, %s)", playerid, dialogid, response, listitem, inputtext);
if(dialogid == 430)
{
if(response == 1)
{
SendClientMessage(playerid, -1, "vб atй o local marcado no mapa.");
SendClientMessageToAll(-1, "um novo assalto foi iniciado \"/cop\" para detelo!");
return 1;
}
}
return 1;
}

