if(newstate == PLAYER_STATE_DRIVER) { if(GetPVarInt(playerid,"used") == 0) { new p = GetPlayerVehicleID(playerid); pObj[playerid] = CreatePlayerObject(playerid,19300, 0.0000, -1282.9984, 10.1493, 0.0000, -1, -1, 100); AttachPlayerObjectToVehicle(playerid,pObj[playerid],p,-0.314999, -0.195000, 0.510000, 0.000000, 0.000000, 0.000000); //AttachCameraToPlayerObject(playerid,pObj[playerid]); // Comment this out SetCameraBehindPlayer(playerid); // Add this DestroyPlayerObject(playerid,pObj[playerid]); // And this SetPVarInt(playerid,"used",1); } }
Find this: Код:
new namestring = strfind(sendername, "_", true); if(namestring == -1) { SendClientMessage(playerid, COLOR_YELLOW, "Your name must be in the Firstname_Lastname format - Please re-log with a name such as John_Smith"); SetTimerEx("GettingKicked", 2000, false, "i", playerid); //ShowPlayerDialog(playerid,CNAME_DIALOG,DIALOG_STYLE_INPUT, "RP Name-change.", "Please input a RP name with the Firstname_Lastname format", "Okay", "Cancel"); return 1; } else { if(!strlen(inputtext)) { DisplayDialogForPlayer(playerid, 2); //register SendClientMessage(playerid, COLOR_WHITE, "SERVER: You must enter a password."); return 1; } if (SQL_AccountExists(sendername)) { SendClientMessage(playerid, COLOR_YELLOW, "That name is already taken, please choose a different one."); return 1; } new tmppass[64]; strmid(tmppass, inputtext, 0, strlen(inputtext), 255); //PlayAudioStreamForPlayer(playerid,"https://dl.dropboxusercontent.com/u/54373498/Ye%20Scallywag.mp3"); PlayAudioStreamForPlayer(playerid,"https://dl.dropboxusercontent.com/u/54373498/Jay%20Rock%20%26quot%3BHood%20Gone%20Love%20It%26quot%3B%20Music%20Video.mp3"); ClearChatbox(playerid, 100); //FadeColorForPlayer(playerid,0,0,0,255,0,0,0,0,15,0); OnPlayerRegister(playerid,tmppass); OnPlayerLogin(playerid,tmppass); //SendClientMessage(playerid, COLOR_YELLOW, "Account registered, you have been logged in automatically."); } Код:
if(!strlen(inputtext)) { DisplayDialogForPlayer(playerid, 2); //register SendClientMessage(playerid, COLOR_WHITE, "SERVER: You must enter a password."); return 1; } if (SQL_AccountExists(sendername)) { SendClientMessage(playerid, COLOR_YELLOW, "That name is already taken, please choose a different one."); return 1; } new tmppass[64]; strmid(tmppass, inputtext, 0, strlen(inputtext), 255); //PlayAudioStreamForPlayer(playerid,"https://dl.dropboxusercontent.com/u/54373498/Ye%20Scallywag.mp3"); PlayAudioStreamForPlayer(playerid,"https://dl.dropboxusercontent.com/u/54373498/Jay%20Rock%20%26quot%3BHood%20Gone%20Love%20It%26quot%3B%20Music%20Video.mp3"); ClearChatbox(playerid, 100); //FadeColorForPlayer(playerid,0,0,0,255,0,0,0,0,15,0); OnPlayerRegister(playerid,tmppass); OnPlayerLogin(playerid,tmppass); //SendClientMessage(playerid, COLOR_YELLOW, "Account registered, you have been logged in automatically."); |
When i type /makeleader 0 1 there is a message Invalid Faction ID ? how to fix that ?
|
goood job ! i like !!!!! recpect !
hard work !! but i need you help : how i can to be admin /rcon ? when i type the comand /rcon login [password] - so the server close the connection... thank ! |