SA-MP Forums Archive
need help with: /teamlogin - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: need help with: /teamlogin (/showthread.php?tid=188408)



need help with: /teamlogin - [WSF]ThA_Devil - 07.11.2010

hey i got idea about team login but...
i cant make it anyway.... i tried with zcmd :
pawn Код:
CMD:teamlogin(playerid, params[]) {
    if(isnull(params)) {
SendClientMessage(playerid, COLOR_RED, "Useage: /TEAMLOGIN <Team password>");
    } else {
// and what to do here? i tried if(params == password); didnt worked as i want.....
    }
    return 1;
}



Re: need help with: /teamlogin - playbox12 - 07.11.2010

How do you mean it didn't work as I want?

What exactly are you trying to accomplish here?


Re: need help with: /teamlogin - [WSF]ThA_Devil - 07.11.2010

i want use params like password......


Re: need help with: /teamlogin - gr56 - 07.11.2010

pawn Код:
if(!strcmp(params,"pass")) {
Team[playerid]=1; // set team variable
}



Re: need help with: /teamlogin - [WSF]ThA_Devil - 07.11.2010

ok i ll try that