Help VERY IMPORTANT
#1

hi, I need a code that makes it ask for a password when trying to join a team, plz help me, it is really important for my server
Reply
#2

First, have you even attempted to make it yourself? With even a little bit of knowledge?
Reply
#3

I tried a lot of things, but still didn't work
Reply
#4

It's called.... The search bar! Alot of tutorials.
Reply
#5

@Mr.BaXx

At end:
pawn Код:
return 1;
}
(8 secs)
Reply
#6

Goodluck in the future
Reply
#7

C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(1075) : warning 202: number of arguments does not match definition
C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(1170) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

what would that be ?
Reply
#8

1075 ShowPlayerDialog(playerid, JOINSTARS, DIALOG_STYLE_INPUT, "Please enter the password to join with cops.", "Submit", "Cancel"); (I changed it to JOINSTARS cause it is the name of my team)

1170 fixed this line already
Reply
#9

yes, I know SOME coding lol
Reply
#10

#define JOINSTARS 1337


if(strcmp(cmd, "/stars", true) ==0)//this is never shown because I didn't know how to make it ask for a password
{
if(team[playerid] == 0)
{
team[playerid] = 6;
ShowPlayerDialog(playerid, JOINSTARS, DIALOG_STYLE_INPUT, "Please enter the password to join with cops.", "Submit", "Cancel");
SendClientMessage(playerid,GREEN,"You may now spawn.");
HideMenuForPlayer(mainmenu,playerid);
return 1;
}




public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == JOINSTARS)
{
if(!strcmp(inputtext, "1598753", true))
{
SetPlayerColor(playerid,BLUE);
SetPlayerTeam(playerid, 1);
SetPlayerPos(playerid,1624.2527,1821.0498,10.8203) ;
SetPlayerFacingAngle(playerid,5.6779);
SetPlayerSkin(playerid,287);
GivePlayerWeapon(playerid,31,300);
GivePlayerWeapon(playerid,24,300);
GivePlayerMoney(playerid, 20000);
SetPlayerInterior(playerid,0);
SetPlayerArmour(playerid, 100);
return 1;
}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)