Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sseebbyy

Pages: 1 ... 48 49 [50] 51
736
I solved the problem... needed to add if(IsPRChosen == 1) { first, not if(IspPRChosen == 0) { first.

----Topic Closed------

737
I have any idea

look :

[pawn]new IsPRChosen;

public OnPlayerDeath(playerid, killerid, reason)
{
    if(PR[playerid] == 1) {
      SendClientMessage(playerid,COLOR_YELLOW,"test");
      if(IsPRChosen == 1) {
      IsPRChosen = 0;
      }
        }
    return 1;
}

public OnPlayerSpawn(playerid,classid,teamid)
{
    ToggleWidescreenForPlayer(playerid,0);
    if(PR[playerid] == 1) {
       if(IsPRChosen == 0) {
      PR[playerid] = 1;
      IsPRChosen = 1;
           }
       if(IsPRChosen == 1) {
           GameTextForPlayer(playerid,"~o~Is Busy This Skin !");
           SetPlayerHealth(playerid,0);
           }
           }
   return 1;
}

public OnPlayerRequestClass(playerid, classid, skinid)
{
if(classid == 0) {
       if(IsPRChosen == 0) {
       PR[playerid] = 1;
       SetPlayerSkin(playerid,0);
       GameTextForPlayerBottom(playerid,"~y~President");
         }
       if(IsPRChosen == 1) {
         GameTextForPlayerBottom(playerid,"~o~Busy");
         }
       }
   return 1;
}[/pawn]


But, at spawn , killed me imediatly...

Why?

I solved problem with one timer on onplayerspawn  ;D

TOPIC CLOSED


not work

738
of course, thank you !  ;D ;D ;D

I think is possible !

Thank You Very Much !  ;D ;D

739
I do not know how to explain it too well ...

[PAWN]

I like when there are more players on the server, only one can make a skin, and others to have skin that hang

How?

For Example: there are 3 players on the server, and I have chosen me to be a cop, the other two can not select all the police.

740
mIRC/pawn Scripting / Re: Jail System
« on: June 15, 2011, 10:02:06 am »
I posted the Jail System in Pawn Showroom ! SEARCH !

http://forum.vicecitymultiplayer.com/index.php?topic=2543.0

741
mIRC/pawn Scripting / Re: What is wrong ? VIP System
« on: June 13, 2011, 09:43:36 am »
Thank You !  ;D

Work !

742
mIRC/pawn Scripting / Re: What is wrong ? VIP System
« on: June 11, 2011, 10:04:11 am »
not work...

743
mIRC/pawn Scripting / Re: What is wrong ? VIP System
« on: June 10, 2011, 10:42:06 pm »
please... enybody

744
mIRC/pawn Scripting / Re: What is wrong ? VIP System
« on: June 10, 2011, 07:15:19 pm »
[pawn]OnPlayerConnect:

SendClientMessageToAll(COLOR_YELLOW,"[VIP SYSTEM]: Thanks goes out to [RAF]Shadow for his database sistem");
    GetPlayerName(playerid,gPlayers[playerid],MAX_PLAYER_NAME);
      new str[256];
      new file[256];
     format(file,sizeof(file),"Users/Vips/%s.ini",gPlayers[playerid]);
     if(!fexist(file))
         {
           dini_Create(file);
           dini_IntSet(file, "Vip", 0);
           }
         IsVIP[playerid] = dini_Int(file, "Vip");
         if(IsVIP[playerid] == 1)
         {
         format(str,sizeof(str),"[VIP SYSTEM]: V.I.P %s joined the server.",gPlayers[playerid]);
         SendClientMessageToAll(BLUE,str);
         }

OnPlayerDisconnect:

new file[256];
     format(file,sizeof(file),"Users/Vips/%s.ini",gPlayers[playerid]);
     if(!fexist(file))
         {
           dini_Create(file);
           dini_IntSet(file, "Vip", 0);
           }
         dini_IntSet(file, "Vip", IsVIP[playerid]);[/pawn]

i have function !

but the command is the problem...

745
mIRC/pawn Scripting / What is wrong ? VIP System
« on: June 10, 2011, 02:22:14 pm »
 I compiled and everything is good, but when I enter the game and write "/ c makevip 3" for example, nothing happens, and even in folder finding nothing, knows no order.

What should I do?


[pawn]if(strcmp(cmdtext,"makevip",true) == 0)
   {
      if(IsPlayerAdmin(playerid))
      {
      tmp = strtok(cmdtext, idx);
      new plr = FindPlayerIDFromString(tmp);
          if(!strlen(team)) SendClientMessage(playerid,COLOR_LIGHT_RED,"USAGE: /c makevip [Nick/ID]");
         else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_LIGHT_RED,"Error: Unknown player");
         else {
             if(IsVIP[plr] == 0)
             {
            format(szMsg,256,"[VIP SYSTEM]: Admin %s made %s a V.I.P",gPlayers[playerid],gPlayers[plr]);
            SendClientMessageToAll(COLOR_YELLOW,szMsg);
            IsVIP[plr] = 1;
            }
            }
      }
      else
      {
         SendClientMessage(playerid,COLOR_RED,"[VIP SYSTEM]: You are not authorized to use this command");
         }
      return 1;
      }
   else if(strcmp(cmdtext,"takevip",true) == 0)
   {
     if(IsPlayerAdmin(playerid))
      {
      tmp = strtok(cmdtext, idx);
      new plr;
       plr = FindPlayerIDFromString(tmp);
          if(!strlen(tmp)) SendClientMessage(playerid,COLOR_LIGHT_RED,"USAGE: /c takevip [Nick/ID]");
         else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_LIGHT_RED,"Error: Unknown player");
         else {
             if(IsVIP[plr] == 1)
              {
         format(szMsg,256,"[VIP SYSTEM]: Admin %s took %s V.I.P privilegies",gPlayers[playerid],gPlayers[plr]);
         SendClientMessageToAll(COLOR_YELLOW,szMsg);
         IsVIP[plr] = 0;
             }
         else
         {
         SendClientMessage(playerid,COLOR_RED,"[VIP SYSTEM]: That player is not in V.I.P Database");
            }
         }
      }
   return 1;
   }[/pawn]

746
mIRC/pawn Scripting / Re: Drift Point = Money ?
« on: May 09, 2011, 08:00:18 pm »
yea...i know

747
mIRC/pawn Scripting / Re: Any way to fix it
« on: May 09, 2011, 11:03:45 am »
Flip Command [Pawn]

else if (strcmp(cmd, "!flip", true) == 0) {
           if(IsPlayerInAnyVehicle(playerid)) {
         new Float:X,Float:Y,Float:Z,Float:Angle,veh;
                        veh = GetPlayerVehicleID(playerid);
         SetVehicleHealth(GetPlayerVehicleID(playerid),1000);
         GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
         SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z,Angle);
                        SendClientMessage(playerid, COLOR_YELLOW, "Flipping Your Car!");
         SetVehicleToRespawn(GetPlayerVehicleID(playerid));
          RemovePlayerFromVehicle(playerid);
          SetVehiclePos(veh,X,Y,Z,Angle);
                    PutPlayerInVehicle(playerid,veh);
                  }
                else {
                    SendClientMessage(playerid,COLOR_RED,"***You are not in vehicle !");
                   }
      return 1;
   }[/pawn]

GetCar Command [Pawn]
else if(strcmp(cmd, "!getcar", true) == 0) {
      tmp = strtok(cmdtext, idx);
      new Float:X,Float:Y,Float:Z,Float:Angle;
         GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
         SetVehiclePos(strval(tmp),X+3,Y+3,Z,Angle);
         SetVehicleToRespawn(strval(tmp));
         RemovePlayerFromVehicle(playerid);
         SetVehiclePos(strval(tmp),X+3,Y+3,Z,Angle);
      return 1;
   }[/pawn]

748
mIRC/pawn Scripting / Re: OnPlayerShootPlayer
« on: May 08, 2011, 10:30:33 pm »
ok..thanx

749
mIRC/pawn Scripting / OnPlayerShootPlayer
« on: May 08, 2011, 12:52:29 pm »
can be a OnPlayerShootPlayer?

[Pawn]

Thanx

750
mIRC/pawn Scripting / Re: How!!!
« on: April 25, 2011, 12:16:27 pm »
not work to lock server in pawn ... i think...

at me not work

Pages: 1 ... 48 49 [50] 51