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.


Topics - VC[88]PD

Pages: [1]
1
Snippet Showroom / I fixed !getcar bug.Here is it.
« on: March 01, 2013, 08:38:01 am »
It is easy to fix it.Just put this in public OnPlayerExitVehicle and it will spawn car all the time when you use !getcar.
[pawn]public OnPlayerExitVehicle(playerid, vehicleid)
{
RemovePlayerFromVehicle(playerid);
    return 1;
}[/pawn]

Thanks!!!![/color][/size]


And the getcar cmd of mine.
[pawn]else if ( strcmp( cmd, "!getcar", true ) == 0 )
   {
         tmp = strtok( cmdtext, idx );
      if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
      else if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_GREEN, "USAGE: !getcar [VehicleID]" );
      else if ( !IsVehicleExist( strval( tmp ) ) ) SendClientMessage( playerid, COLOR_GREEN, "Error: Unknown Vehicle" );
      else if ( !IsVehicleOwnedShared( strval( tmp ), gPlayers[ playerid ] ) ) SendClientMessage( playerid, COLOR_GREEN, "You do not have the keys for that vehicle." );
      else
      {
         new Float:Angle;
         GetPlayerPos( playerid, x, y, z); GetPlayerFacingAngle( playerid,Angle);
         if ( !Angle) SendClientMessage( playerid, COLOR_GREEN, "Error: Invalid vehicle!" );

         GetPlayerPos(playerid, x, y, z);
         SetVehiclePos( strval( tmp ),x+3, y+3, z,Angle);
         SetVehicleToRespawn(strval( tmp ));
         PutPlayerInVehicle(playerid, strval( tmp ));
         format( szMsg, sizeof( szMsg ), "Spawning vehicle:[ %d ]", strval( tmp ) );
         SendClientMessage( playerid, COLOR_GREEN, szMsg );
      }
      return 1;
   }[/pawn]
Use this cmd,the car will be proof.
 :) :) :) :) :) :) :) :)

2
VC:MP Clans / [Next_Plus]Clan
« on: February 26, 2013, 12:28:55 pm »
This is a new clan by me. Welcome to join us.

Clan Host:[Next_Plus]COP(VC[88]PD)
Clan Members:
[Next_Plus]Alma
[Next_Plus]bdc
[Next_Plus]Chi.
[Next_Plus]COP
[Next_Plus]FBI_Monkey
[Next_Plus]Mxs
[Next_Plus]nue
[Next_Plus]ruoxi
[Next_Plus]UP
Offical Website: http://www.vcpd.smfnew.com/index.php
Offical Server:VCPD Server

Welcome to join us!!!

3
Snippet Showroom / Race System 0.1 By me
« on: February 16, 2013, 05:09:54 pm »
Hi,all again.Today I have made a command because I was race with [VN]Truon_Chan1 and I think I can make a random route system.So I made this.I hope you like.
Put this on top:
[pawn]new RandomRoute[][] =
{

"=== Mansion to Port ===",
"=== Malibu to Ocean View ===",
"=== Downtown Police Station to Leaf Link ===",
"=== Downtown Hotel to Airport ===",
"=== Port to Mansion ===",
"=== Ocean View to Malibu ===",
"=== Airport to Downtown Hotel ===",
"=== Leaf Link to Downtown Police Station ==="
};[/pawn]
And put this into public OnPlayerText(playerid, cmdtext[])
[pawn]else if (strcmp(cmd, "!race", true) == 0)
      {
            SetTimer( "LoadingRoute", 1000, 0 );
         SetTimer( "LoadingRoute1", 2000, 0 );
         SetTimer( "LoadingRoute2", 3000, 0 );
         SetTimer( "CountDowns3", 300000, 0 );
            SetTimer( "CountDowns2", 301000, 0 );
           SetTimer( "CountDowns1", 302000, 0 );
           SetTimer( "FinalCount1", 303000, 0 );
           SetTimer( "FinalCount2", 304000, 0 );
         return 1;
       }[/pawn]
Put this at last of your pawn
[pawn]public LoadingRoute()
{
    SendClientMessageToAll(COLOR_GREEN, "Route of Next Race is :");
}
public LoadingRoute1()
{
    new randMSG = random(sizeof(RandomRoute));
   SendClientMessageToAll(COLOR_GREEN,RandomRoute[randMSG]);
   }
public LoadingRoute2()
{
    SendClientMessageToAll(COLOR_YELLOW, "Please go to the start quickly.");
    GameTextForAll("~y~Race ~p~will ~t~start ~b~in ~q~5 ~r~min");
}
public CountDowns3()
{
   GameTextForAllBottom("~x~= 3 =");
   GameTextForAll("~r~>~y~>~t~>");
}
public CountDowns2()
{
   GameTextForAllBottom( "~r~= 2 =" );
    GameTextForAll("~y~>~t~>");
}
public CountDowns1()
{
   GameTextForAllBottom("~p~= 1 =" );
    GameTextForAll("~t~>");
}

public FinalCount1()
{
   GameTextForAllBottom("~y~GO! ~q~GO! ~p~GO!" );
   GameTextForAll("~y~GO! ~q~GO! ~p~GO!");
}
public FinalCount2()
{
   GameTextForAllBottom(" " );
}[/pawn]
Thanks

4
mIRC/pawn Scripting / Question about spawned as XXX
« on: February 14, 2013, 01:25:36 pm »
I've written this.But It isn't working.Help me please :-\
[pawn]format( szMsg, sizeof( szMsg ), "%s spawned as [ %s ]", gPlayers[ playerid ],gSkins[ skinid ] );[/pawn]

5
Hi everyone . This Command Only For GUPS because GUPS has the function of GetPlayerLocation( playerid ).
I hope you like it .
First,Put this on top.
[pawn]new Mission1[MAX_PLAYERS];[/pawn]
Second,Put this in public OnPlayerDisconnect and public OnPlayerDeath.
[pawn]Mission1[playerid] = 0;[/pawn]
Then,put this main part to public OnPlayerCommandText( playerid, cmdtext[] )
[pawn]else if ( strcmp( cmd, "mission1", true ) == 0 )
   {
   if ( strcmp( GetPlayerLocation( playerid ), "Docks-Viceport-Vice-City-Mainland", true ) == 1 )SendClientMessage(playerid, COLOR_RED,"[Error] - Please goto the port and find a mule.(use !port).");
        else if (!IsPlayerInVehicle(playerid, 96)) SendClientMessage(playerid, COLOR_RED, "Please get on the mule.");
      else {
            SendClientMessage(playerid ,COLOR_GREEN, "Welcome to mission 1.In this mission you should drive your mule to the mall,let we go!");
         RemovePlayerFromVehicle(playerid);
            SetPlayerSkin(playerid, 0);
          SetPlayerSkin(playerid, 159);
          PutPlayerInVehicle(playerid, 96);
            GameTextForPlayer(playerid,"~p~mission ~r~1 ~y~started");
         SendClientMessage(playerid, COLOR_YELLOW, "OK,let we goto the mall.If you arrive the mall,please type /c mission1f to get some money.");
            Mission1[playerid] = 1;
        }
      return 1;
      }
      else if ( strcmp( cmd, "mission1f", true ) == 0 )
   {
        if ( strcmp( GetPlayerLocation( playerid ), "North-Point-Mall-Vice-Point-Vice-City-Beach", true ) == 1 )SendClientMessage(playerid, COLOR_RED,"[Error] - You can only steal in an area near the mall.");
        else if (Mission1[playerid] == 0) {
        SendClientMessage(playerid,0xAA3333AA,"You haven't started the mission yet,type /c mission1 to view the mission.");
        }
      else{
      new plname[24];
      new szMsg[256];
      SetPlayerMoney(playerid, GetPlayerMoney(playerid) + 10000);
      SendClientMessage(playerid, 0x33CCFFAA, "congratulation!!You have finished the mission1 already.You have got money = 10000 already!");
      GameTextForPlayer(playerid,"~y~congratulation~p~!!!!");
        GetPlayerName(playerid,plname,24);
        format(szMsg, sizeof(szMsg), "%s has finished mission 1 and get money = 10000!Do you want finish it too?Type /c mission1 !!",plname);
      SendClientMessageToAll(0xF6A113FF,szMsg);
      RemovePlayerFromVehicle(playerid);
      SetVehicleToRespawn(96);
      Mission1[playerid] = 0;
      }
      return 1;
      }[/pawn]
When you finish these Step,Enjoy it!!
Thanks!!!!

6
mIRC/pawn Scripting / [Command Question][Need help with givecash]
« on: February 09, 2013, 10:29:44 am »
Hi,all,I need help again.I made this command but it have many errors.Can you help me?
[pawn]    else if (strcmp(cmd, "!givecash", true) == 0)
   {
          tmp = strtok(cmdtext, idx);
        new len = strlen(tmp);
        new plr;
        plr = FindPlayerIDFromString(tmp);
         if (!len) { format(szMsg,sizeof(szMsg),"Usage: !givecash [playerid] [100/500/1000].",tmp);SendClientMessage(playerid, COLOR_GREY, szMsg);return 1;}
         else if ( plr == INACTIVE_PLAYER_ID ) SendClientMessage( playerid, COLOR_RED, "Error: Unknown player" );
         else {
            if(strcmp(tmp, "100", true) == 0)
          {
         if {(GetPlayerMoney(playerid) < 100) SendClientMessage( playerid, COLOR_GREEN, "Error: You havent got the needed money." );return 1;}
         else{
        SetPlayerMoney(plr, GetPlayerMoney(plr) + 100);
        SetPlayerMoney(playerid, GetPlayerMoney(playerid) - 100);
        format(szMsg,256,"%s has use !givecash to given %s [100].",gPlayers[ playerid ],gPlayers[ plr ]);
          SendClientMessageToAll(COLOR_LIGHTBLUE, szMsg);
        }
        return 1;
        }
          else if(strcmp(tmp, "500", true) == 0)
         {
             if {(GetPlayerMoney(playerid) < 500) SendClientMessage( playerid, COLOR_GREEN, "Error: You havent got the needed money." );return 1;}
         else{
          SetPlayerMoney(plr, GetPlayerMoney(plr) + 500);
        SetPlayerMoney(playerid, GetPlayerMoney(playerid) - 500);
        format(szMsg,256,"%s has use !givecash to given %s [500].",gPlayers[ playerid ],gPlayers[ plr ]);
          SendClientMessageToAll(COLOR_LIGHTBLUE, szMsg);
          }
          return 1;
          }
         else if(strcmp(tmp, "1000", true) == 0)
         {
         if {(GetPlayerMoney(playerid) < 1000) SendClientMessage( playerid, COLOR_GREEN, "Error: You havent got the needed money." );return 1;}
         else{
             SetPlayerMoney(plr, GetPlayerMoney(plr) + 1000);
        SetPlayerMoney(playerid, GetPlayerMoney(playerid) - 1000);
        format(szMsg,256,"%s has use !givecash to given %s [1000].",gPlayers[ playerid ],gPlayers[ plr ]);
          SendClientMessageToAll(COLOR_LIGHTBLUE, szMsg);
          }
          return 1;
          }
        }
       return 1;
   }[/pawn]

errors:
Code: [Select]
D:\VCMP JIANFU2\gamemodes\mode.pwn(1744) : error 001: expected token: "(", but found "{"
D:\VCMP JIANFU2\gamemodes\mode.pwn(1753) : error 029: invalid expression, assumed zero
D:\VCMP JIANFU2\gamemodes\mode.pwn(1753) : warning 215: expression has no effect
D:\VCMP JIANFU2\gamemodes\mode.pwn(1753) : error 001: expected token: ";", but found "if"
D:\VCMP JIANFU2\gamemodes\mode.pwn(1755) : error 001: expected token: "(", but found "{"
D:\VCMP JIANFU2\gamemodes\mode.pwn(1766) : error 001: expected token: "(", but found "{"
D:\VCMP JIANFU2\gamemodes\mode.pwn(1768) : error 017: undefined symbol "plr"
D:\VCMP JIANFU2\gamemodes\mode.pwn(1770) : error 017: undefined symbol "plr"
D:\VCMP JIANFU2\gamemodes\mode.pwn(1775) : error 054: unmatched closing brace
D:\VCMP JIANFU2\gamemodes\mode.pwn(1776) : error 010: invalid function or declaration
D:\VCMP JIANFU2\gamemodes\mode.pwn(1778) : error 010: invalid function or declaration
Can you help me?
thanks

7
mIRC/pawn Scripting / [I have question again] Pickup command question
« on: February 04, 2013, 12:38:33 pm »
Hi,everyone.I've write this,but when I pick these,nothing happen.
[pawn]public OnPickedUp(pickupid, playerid)
{
if ( pickupid == 287)
{
GivePlayerWeapon(playerid, 30, 500);
}
else if ( pickupid == 289)
{
GivePlayerWeapon(playerid, 32, 500);
}
else if ( pickupid == 275)
{
GivePlayerWeapon(playerid, 18, 500);
}
else if ( pickupid == 272)
{
GivePlayerWeapon(playerid, 15, 500);
}
else if ( pickupid == 279)
{
GivePlayerWeapon(playerid, 21, 500);
}
else if ( pickupid == 280)
{
GivePlayerWeapon(playerid, 26, 500);
}
else if ( pickupid == 286)
{
GivePlayerWeapon(playerid, 29, 500);
}
else if ( pickupid == 276)
{
GivePlayerWeapon(playerid, 27, 500);
}
else if ( pickupid == 282)
{
GivePlayerWeapon(playerid, 23, 500);
}
else if ( pickupid == 291)
{
GivePlayerWeapon(playerid, 13, 500);
}
else if ( pickupid == 268)
{
GivePlayerWeapon(playerid, 10, 500);
}
return 1;
}[/pawn]
Please Tell Me!

8
mIRC/pawn Scripting / Change Vehicle Colour Bug
« on: February 02, 2013, 04:54:49 pm »
Why I changed a vehicle of my server ,and my server was crashed?It's a true colour of that vehicle.

9
mIRC/pawn Scripting / count command by me(not that count down in gups)
« on: December 28, 2012, 04:09:23 pm »
[pawn]else if ( strcmp( cmd, "!count", true ) == 0 )
   {
       SetTimer( "CountDowns3", 1000, 0 );
        SetTimer( "CountDowns2", 2000, 0 );
       SetTimer( "CountDowns1", 3000, 0 );
       SetTimer( "FinalCount", 4000, 0 );
      return 1;
   }[/pawn]
and the public:

[pawn]public CountDowns3()
{
   new szMsg[ 16 ];
   format( szMsg, 16, "== 3 ==");
   SendClientMessageToAll( COLOR_GREEN, szMsg );
}
public CountDowns2()
{
   new szMsg[ 16 ];
   format( szMsg, 16, "== 2 ==");
   SendClientMessageToAll( COLOR_GREEN, szMsg );
}
public CountDowns1()
{
   new szMsg[ 16 ];
   format( szMsg, 16, "== 1 ==");
   SendClientMessageToAll( COLOR_GREEN, szMsg );
}

public FinalCount()
{
   SendClientMessageToAll(COLOR_GREEN, "== GO! ==" );
   GameTextForAll("gogogo!!");
}[/pawn]
Here is it ,thanks.

10
Support / WHY CHINESE SERVER ALWAYS LOST CONNECTION?
« on: December 27, 2012, 06:00:00 pm »
THE SUNNY CITY ,THE VCPD SERVER AND MORE SERVER IF THEIR'S PORT IS 5192 ALWAYS  LOST CONNECTION .WE THINK THERE'S SOMEONE ATTACKED THESE SERVER.CAN THE OFFICIAL CHECK THIS? PLEASE!!
 
I KNOW MY ENGLISH IS SO BAD ,BUT PLEASE HELP ME!

Pages: [1]