SA-MP Forums Archive
How to - 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: How to (/showthread.php?tid=81337)



How to - JoeDaDude - 09.06.2009

Im making a admin player class,
But how do i make it so,
If someone picks that player class,
It asks for a password?
Its easy to make i know,
But the bit i dont know is,
When they say the password,
It says password accepted,
All that works, But it says the password in mainchat,
Which i do not want, Any help? Ty


Re: How to - HuRRiCaNe - 09.06.2009

can u post it so i can help you modifing the sccript'ї?


Re: How to - JoeDaDude - 09.06.2009

pawn Код:
OnPlayerSpawn (Not the full just example)
{
If(PlayerSkin) = 280 ))
TogglePlayerControllable(0);
if(strtext("password" true));
TogglePlayerControllable(1);
SetPlayerPos()
{
else
}
SetPlayerPos()
SendClientMessage(Your not admin)
return 1;
}
Ok i just wrote that right now i didnt look at my script,
But you know what the codes are and what i mean


Re: How to - coole210 - 09.06.2009

Just make it a / command. like /password


Re: How to - HuRRiCaNe - 09.06.2009


pawn Код:
OnPlayerSpawn (Not the full just example)
{
If(PlayerSkin) = 280 ))
TogglePlayerControllable(0);
if(strtext("password" true));
TogglePlayerControllable(1);
SetPlayerPos()
{
else
}
SetPlayerPos()
SendClientMessage(Your not admin)
return 0;// return 0 so nobody look at it
}
hope it help , but you should make a cmd like cole said


Re: How to - JoeDaDude - 09.06.2009

Na i dont want cmd, But il try that code