15.08.2009, 05:51
OK , Thanks people for the anims , now I want to add rules, could somebody teach me how to do that ?
SendClientMessage(playerid, YOUR_COLOR, "The message you want to display goes here!");
SendClientMessage(playerid, AEB404, "Rule Number1");
SendClientMessage(playerid, AEB404, "Rule Number2");
SendClientMessage(playerid, AEB404, "Rule Number3");
SendClientMessage(playerid, AEB404, "Rule Number4");
SendClientMessage(playerid, AEB404, "Rule Number5");
public OnPlayerSpawn(playerid)
{
TogglePlayerControllable(playerid, false);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Rules here", "Understood", "Cancel");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(!response) // If he clicked on "Cancel"
{
Kick(playerid); // It will kick him
return 1;
} else {
TogglePlayerControllable(playerid, true);
}
return 1;
}
return 0;
}