Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Fuzzy168 on May 31, 2011, 09:17:11 am
-
So I tried to remake my server script.. I found this and need help..
[pawn] else {
SendClientMessage(playerid, COLOR_GREEN, "Your nick is not registered. Please register to protect it!");
SendClientMessage(playerid, COLOR_GREEN, "USAGE: /c register [Password]");
PlayerInfo[playerid][Logged] = 2;
PlayerInfo[playerid][Stats] = 2;
}
return 1;[/pawn]
The [pawn] PlayerInfo[playerid][Logged] = 2;
PlayerInfo[playerid][Stats] = 2;[/pawn]
What is the 2for and how do I make this command that people must register or gets freeze when spawn?
-
how do I make this command that people must register or gets freeze when spawn?
man i Can't believe i am helping in Pawn
So
Ask Stormeus about 2 thing
well here is your Freeze function
[pawn]Public OnPlayerSpawn( plr , class , team )
{
If(PlayerInfo[Logged][plr] == 2) {
ToggleControlPlayer(playerid) == 0;
SendClientMessage(plr,"Please Register");
}[/pawn]
i forgot spellings of course cuz of Squirrel >.> I am Making IRC commands for Echo with BIG[H] for ma server that's so Fun.
Requesting Stormeus To EDIT it :( i am lazy + Bussy with Squirrel
-
[pawn]Public OnPlayerSpawn( plr , class , team )
{
If(PlayerInfo[Logged][plr] == 2) {
ToggleControlPlayer(playerid) == 0;
SendClientMessage(plr,"Please Register");
}[/pawn]
Invalid syntax. Fixed version follows.
[pawn]
public OnPlayerSpawn(plr, class, team)
{
if(PlayerInfo[Logged][plr] == 2)
{
// Freeze the player
TogglePlayerControllable(plr, false);
// Assuming #define COLOR_YELLOW is set
SendClientMessage(plr, COLOR_YELLOW "You have been frozen for not registering. Please use /c register");
}
}
[/pawn]
You'd then need TogglePlayerControllable(plr, true); wherever the register and login commands are.
-
Why My GUPS PSA Dont Work i really wont to know
-
Why My GUPS PSA Dont Work i really wont to know
Don't hijack threads... open a new one.
Anyways, PSA is a little outdated and hard to implement.
-
Thx Man