19.06.2012, 07:34
Hello there!
So, I'm running light edited version from LVRCR 1.8, but I need some bug fixes to this game mode and maybe something more.
I'm concerned about the log in and register system. Users need to use /register (password) and /login (password) to chat. I Don't have idea how to replace this log in and register system to dialogs, what shows "oooo" when user writes his password. Maybe I can paste here the normal code and helpful guys help me?
Here is it:
And second question is that, I'm made more casino map icons to map, but I Don't have idea, how to put red circle to teleport player to four dragons casino.
Thanks for your reply in advance and in advance I'm sorry, if this place is wrong, where I post this post.
Sincerely: CrossUSAAF.
So, I'm running light edited version from LVRCR 1.8, but I need some bug fixes to this game mode and maybe something more.
I'm concerned about the log in and register system. Users need to use /register (password) and /login (password) to chat. I Don't have idea how to replace this log in and register system to dialogs, what shows "oooo" when user writes his password. Maybe I can paste here the normal code and helpful guys help me?
Here is it:
Код:
public OnPlayerConnect(playerid)
{
new str[100], str2[100], string[100];
GetPlayerName(playerid, str, 24);
format(str2, 100, "\2;%s(%d) Has Joined **** v%s\2;", str,playerid,sversion);
format(str, 100, "%s(%d) Has Joined **** v%s", str,playerid,sversion);
printf("%s",str);
for(new i=0; i<MAX_PLAYERS_; i++) {
if(IsPlayerConnected(i) && i != playerid) {
SendClientMessage(i,0x808080AA, str);
GiveScoreTimer[playerid] = SetTimerEx ("GivePlayerScore", 1000*60, true, "d", playerid);
}
}
TogglePlayerClock(playerid,true);
InShamal[playerid] = 0;
SetPlayerColor(playerid,COLOR_DEADCONNECT);
SetPlayerVirtualWorld(playerid,0);
format(string, sizeof(string), "**** - Script Version %s",sversion);
SendClientMessage(playerid,COLOR_WHITE, string);
SendClientMessage(playerid,0x87CEEBAA, "This is NOT a deathmatch server. Please do not randomly kill players in here");
SendClientMessage(playerid,0x87CEEBAA, "Visit our website to report bugs, give suggestions, complaints and etc.");
SendClientMessage(playerid,0x87CEEBAA, "There is a full list of commands/rules and other information on our website, so you should visit." );
SendClientMessage(playerid,0x87CEEBAA, "Visit our website at: ****");
format(string, sizeof(string), "~w~Welcome to~n~****~n~~b~version %s!",sversion);
GameTextForPlayer(playerid,string, 6000, 0);
if(udb_Exists(PlayerName(playerid))) {
SendClientMessage(playerid,0x9ACD32AA,"This Playername is Registered. Please login before you can spawn");
SendClientMessage(playerid,COLOR_RED,"Please use command /login (password) to login before you can spawn");
}
else
if(!udb_Exists(PlayerName(playerid))) {
SendClientMessage(playerid,0x9ACD32AA,"This Playername has not yet been registered. You must register on this server before you can play.");
SendClientMessage(playerid,COLOR_RED,"Please use /register (password) to register before you can spawn");
}
KilledHimself[playerid] =0;
SpamStrings[playerid] =0;
GotCopBriberecently[playerid] =0;
CanUseArmy[playerid] =0;
PlayerAdminLevel[playerid] =0;
AdminKilled[playerid] =0;
TimeToMoveTwoFourSeven[playerid] =999;
RobbedCash[playerid] =0;
BankCashReturns[playerid] =0;
BankRobInsurance[playerid] =0;
AbandonedCopCar[playerid] =1;
HasCried[playerid] =0;
IsSpawned[playerid] =0;
zoneupdates[playerid] = 0;
player_zone[playerid] = -1;
Jailed[playerid] =0;
Frozen[playerid] =0;
cuffed[playerid] =0;
Kicking[playerid] =0;
Chlamydia[playerid] =0;
Banning[playerid] =0;
PlayerRobwwait[playerid] =1;
Tazed[playerid] =0;
hastazer[playerid] =0;
LawEnforcementRadio[playerid] =0;
HasLawEnforcementRadio[playerid] =0;
ReqBk[playerid] =0;
ReqBkRecent[playerid] =0;
ReportedRecent[playerid] =0;
wantsheal[playerid] =0;
wantscure[playerid] =0;
wantsmechanic[playerid] =0;
RecentAskedMechanic[playerid] =0;
RobbedCasRecent[playerid] =0;
RobbedPlyRecent[playerid] =0;
Wantsfood[playerid] =0;
sellfoodrecently[playerid] =1;
Salmonella[playerid] =0;
askedforfood[playerid] =0;
askedforweapons[playerid] =0;
Wantsguns[playerid] =0;
OfferedGuns[playerid] =0;
Muted[playerid] =0;
PlayerDrugs[playerid] =0;
wantsdrugs[playerid] =0;
solddrugsrecent[playerid] =0;
JailTime[playerid] =0;
StoleCopCarRecent[playerid] =0;
playerondrugs[playerid] =0;
playertookdrugs[playerid] =0;
HasDrugBag[playerid] =0;
triedtoescaperecent[playerid] =0;
cannotescapejail[playerid] =0;
CopWaitBetweenRefills[playerid] =0;
VisitReq[playerid] =0;
EscapedConvict[playerid] =0;
VisitReqExpires[playerid] =0;
HasHitOnHim[playerid] =0;
InAlcatraz[playerid] =0;
PLAYERLIST_authed[playerid]=false;
loginchances[playerid] =0;
BankCash[playerid] =0;
UsedBankRecently[playerid] =0;
InBank[playerid] =0;
Playerrobbedbankrecent[playerid] =0;
InDerby[playerid] =0;
commitedcrimerecently[playerid] =0;
copshavevc[playerid] =0;
fixedcarrecent[playerid] =0;
//NewCash[playerid] =0;
OldCash[playerid] =0;
RegularPlayer[playerid] =0;
InAdminHQ[playerid] =0;
autobahnowner[playerid] =0;
drunkplayer[playerid] =0;
lastcardrove[playerid] =999;
InAdminMode[playerid] =0;
HasC4[playerid] =0;
PlantingC4[playerid] =0;
RobbedCaligs[playerid] =0;
HasWallet[playerid] =0;
TrashDeliveryTime[playerid] =0;
TrashDeliveryEarnings[playerid] =0;
GunDeliveryLevel[playerid] =0;
OnDelMission[playerid] =0;
GunsDeliveryTime[playerid] =0;
DeliveringGuns[playerid] =0;
RobbedBank[playerid] =0;
DeliveringCash[playerid] =0;
totalcashdelivered[playerid] =0;
Driveronduty[playerid] =0;
pmsoff[playerid] =0;
carwin[playerid] =0;
beenrobbedrecently[playerid] =0;
AllowPlayerTeleport(playerid,0);
canchooseskill[playerid] =0;
robberrank[playerid] =0;
teamkiller[playerid] =0;
innocentkiller[playerid] =0;
lowwantedkiller[playerid] =0;
CasSecLastPlayerCuffed[playerid] =999;
LeftTwoFourSeven[playerid] =999;
SetPlayerMapIcon( playerid, 1, 3834.0366,462.8921,40.4060, 30, 0 );
SetPlayerMapIcon( playerid, 2, 2347.7432,1561.8536,36.9063, 52, 0 ); // bank
SetPlayerMapIcon( playerid, 3, 1137.7289,2088.1465,11.0625, 52, 0 ); // atm 1
SetPlayerMapIcon( playerid, 4, 2540.4976,2266.2742,10.8203, 52, 0 ); // atm 2
SetPlayerMapIcon( playerid, 5, 2192.8577,1975.1671,12.2894, 52, 0 ); // atm 3
SetPlayerMapIcon( playerid, 6, 2231.5820,958.6937,10.8203, 52, 0 ); // atm 4
SetPlayerMapIcon( playerid, 7, 2174.4482,1398.4165,11.4234, 55, 0 ); // autobahn
SetPlayerMapIcon( playerid, 8, 2283.0537,2437.0647,46.9775, 30, 0 ); // lvpd
SetPlayerMapIcon( playerid, 9, 2196.3389,1677.1106,12.3672, 25, 0 ); //casino enter 1
SetPlayerMapIcon( playerid, 10, 2020.5496,1007.7546,10.8203, 25, 0 ); //casino enter 2
SetPlayerMapIcon( playerid, 11, 2166.1421,2164.9917,10.8203, 25, 0 ); //casino enter 3
SetPlayerMapIcon( playerid, 12, 2162.9590,2070.8481,10.8203, 25, 0 ); //casino enter 4
//SetPlayerMapIcon( playerid, 13, 2440.9717,2376.7434,11.2572, 40, 0 ); // lvpd
return 1;
}
Thanks for your reply in advance and in advance I'm sorry, if this place is wrong, where I post this post.
Sincerely: CrossUSAAF.


.