What is wrong here? :/ - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: What is wrong here? :/ (
/showthread.php?tid=347466)
What is wrong here? :/ -
OleKristian95 - 02.06.2012
pawn Код:
if(dialogid == 1244)
{
if(response == 0)
{
SendClientMessage(playerid,0xAA3333AA,"You have to agree with our rules to play here!");}
Kick(playerid);}
if(response == 1)
{
SendClientMessage(playerid,0xAA3333AA,"You have to agree with our rules to play here!");}
return 1;
}
Re: What is wrong here? :/ -
FalconX - 02.06.2012
Quote:
Originally Posted by OleKristian95
pawn Код:
if(dialogid == 1244) { if(response == 0) { SendClientMessage(playerid,0xAA3333AA,"You have to agree with our rules to play here!");} Kick(playerid);} if(response == 1) { SendClientMessage(playerid,0xAA3333AA,"You have to agree with our rules to play here!");} return 1; }
|
I've fixed for you.
pawn Код:
if(dialogid == 1244)
{
if(response) // if response then he get the following message
{
SendClientMessage(playerid, 0xAA3333AA, "You have agreed our rules to play here, enjoy your stay"); // message of welcome
}
else // if he do not agree to our rules he get's the message you have to agree and get's kick.
{
SendClientMessage(playerid, 0xAA3333AA,"You have to agree with our rules to play here!");
Kick(playerid);
}// close the bracket here
return 1;
}