Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Fuzzy168 on May 31, 2011, 09:17:11 am

Title: GUPS help!!
Post 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?
Title: Re: GUPS help!!
Post by: Maxwell on June 01, 2011, 02:17:36 pm
Quote
Quote
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
Title: Re: GUPS help!!
Post by: stormeus on June 01, 2011, 11:21:42 pm
[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.
Title: Re: GUPS help!!
Post by: (SZ)Naruto on June 07, 2011, 12:00:20 pm
Why My GUPS PSA Dont Work i really wont to know
Title: Re: GUPS help!!
Post by: stormeus on June 07, 2011, 01:42:48 pm
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.
Title: Re: GUPS help!!
Post by: (SZ)Naruto on June 07, 2011, 06:13:46 pm
Thx Man