Changepass
#2

PHP код:
CMD:changepass(playerid,params[])
{
if(!
strlen(params))
{
SendClientMessage(playerid,-1,"Usage: /changepass (new pass)");
return 
1;
}
if(
strval(params) < 6
{
SendClientMessage(playerid,-1,"ERROR: Password 
Must be at least 6 characters"
);
return  
1;
}
if(
GetPlayerState(playerid) == PLAYER_STATE_WASTED
{
 
SendClientMessage(playerid,-1,"You are must be spawned!");
return 
1;
}
dUserSetINT(playerid).("Password",params);
new 
string[128];
format(string,sizeof string,"
You change the password %s"
,params);
SendClientMessage(playerid,-1,string);
return 
1;

Change the password by Mode
in the string
Reply


Messages In This Thread
Changepass - by andreyysk - 18.06.2016, 09:20
Re: Changepass - by Backups - 18.06.2016, 12:04
Re: Changepass - by andreyysk - 18.06.2016, 12:35
Re: Changepass - by Backups - 18.06.2016, 12:39
Re: Changepass - by andreyysk - 18.06.2016, 12:41
Re: Changepass - by Backups - 18.06.2016, 12:47
Re: Changepass - by F1N4L - 18.06.2016, 13:05
Re: Changepass - by andreyysk - 18.06.2016, 13:20
Re: Changepass - by F1N4L - 18.06.2016, 13:24
Re: Changepass - by andreyysk - 18.06.2016, 13:32

Forum Jump:


Users browsing this thread: 1 Guest(s)