31.01.2013, 16:09
PHP код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
new event;
new Inevent;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("Filter Script Event By Gabrielloko157 =D");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/criarevento", true))
{
for(new i=0; i< MAX_PLAYERS; i++)
{
ShowPlayerDialog(i,1923,DIALOG_STYLE_MSGBOX,"Evento Paintball","O Admin %s estб chamando todos Para um\n Evento de Paintball\n Vocк Deseja ir ?","Sim","Nгo");
}
}
return 0;
}
public OnPlayerDeath(playerid, killerid, reason)
{
{
if(Inevent == 1)
{
SetPlayerPos(playerid,0.0,0.0,3.0);
}
#endif
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1923){
if(response){
SetPlayerPos(playerid,0.0,0.0,3.0);
Inevent = 1;
}
else{
}
}
return 0; // You MUST return 0 here! Just like OnPlayerCommandText.
}
eu to fazendo esse fs mais deu alguns erros alguem sabe o que pode ser ?