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 - faizan12345

Pages: [1] 2
1
mIRC/pawn Scripting / Pickup respawn
« on: March 26, 2012, 10:59:21 am »
Hello,there is any way for pickup respawn in every 2 seconds and when some one pickup id then it gives message "you pickup the beer"..
I try for this many times but failed...

2
mIRC/pawn Scripting / Re: Very Tense Problem Here?
« on: February 16, 2012, 08:12:46 am »
By working hard now i know some pawn language...
I resolve it by my own means...
Very happy ;) ;D :o :-* :P

3
mIRC/pawn Scripting / Re: Spawn problems?
« on: February 16, 2012, 07:20:54 am »
Quote
Try to find OnGameModeInit() and add
Code: [Select]
SetWorldBounds(5000.0,-5000.0,5000.0,-5000.0);
SetCameraPos(-231.4, -440.0, 32.1);
   SetCameraLookAt(-232.0314, -442.6181, 33.1);
   SetPlayerStartPos(-232.0314, -442.6181, 32.7944);

for example nano!
Code: [Select]
public OnGameModeInit()
{
   SetGameModeText("nubs");

   ShowPlayerMarkers(1);

   // Player Classes
   AddPlayerClassEx(1,61,335.570099,-233.904694,29.646601,164.184799,0,0,17,500,21,500);
   AddPlayerClassEx(2,56,-540.355713,806.634583,97.510399,222.869095,0,0,17,500,21,500);
   AddPlayerClassEx(3,68,-1037.172729,80.577003,11.579200,87.457100,0,0,17,500,21,500);
   AddPlayerClassEx(4,27,327.972198,-222.016098,35.881302,157.274796,0,0,17,500,21,500);
        SetWorldBounds(5000.0,-5000.0,5000.0,-5000.0);
        SetCameraPos(-231.4, -440.0, 32.1);
   SetCameraLookAt(-232.0314, -442.6181, 33.1);
   SetPlayerStartPos(-232.0314, -442.6181, 32.7944);

}
try to understand it and learn, Remember this is only example. do not copy n paste same code or you'll destroy your script



Thanks.but i already do this..
No effect...

4
mIRC/pawn Scripting / Very Tense Problem Here?
« on: February 16, 2012, 07:18:07 am »
[pawn]enum pInfo
TimeGoto,
}[/pawn]


[pawn] else if ( strcmp( cmd, "!goto", 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_GREY, "Usage: !goto [Nick/ID]" );
      else
      {
          new plr = FindPlayerIDFromString( tmp );
          if ( plr == INACTIVE_PLAYER_ID ) SendClientMessage( playerid, COLOR_GREEN, "Error: Unknown player" );
          else if ( PlayerInfo[ plr ][ NoGoto ] == 1 ) SendClientMessagef( playerid, COLOR_GREEN, "%s has goto Disabled.", strval( gPlayers[ plr ]) );
          else if ( !IsPlayerSpawned( plr ) ) SendClientMessagef( playerid, COLOR_GREEN, "Error: %s does not spawned!", gPlayers[ plr ] );
          else
         {

            format( szMsg, sizeof( szMsg ), "Teleporting:[ %s ] to:[ %s ]", gPlayers[ playerid ], gPlayers[ plr ] );
            SendClientMessageToAll( COLOR_GREEN, szMsg );
            SetTimer("SetGotoTimer",3000,0);
         }
      }
      return 1;
   }[/pawn]

in public i put these...

[pawn]public SetGotoTimer()
{
new plr;
GetPlayerPos( plr, x, y, z );
SetPlayerPos( playerid, x, y + 1.0, z, 0, 0 );
SendClientMessage(plr, GREEN,"Teleporting to player: %s.",gPlayers[plr]);
GameTextForPlayer(plr,"~h~Teleported!");

return 1;
}[/pawn]




And i getiing the error,
[pawn]\BSG.pwn(3959) : error 017: undefined symbol "x"
\BSG.pwn(3960) : error 017: undefined symbol "x"[/pawn]


So,what can i do to remove this....


5
mIRC/pawn Scripting / Re: Spawn problems?
« on: February 15, 2012, 07:07:55 am »
Quote
public OnPlayerConnect(playerid)
{
   SetWaterLevel(6.0);
   SetGamespeed(100);
   SetWorldTime(7);
   SetGravity(100);
   GetPlayerName(playerid,jPlr[playerid],MAX_PLAYER_NAME);
       return 1;
}

Not working at all... :'( :(

6
mIRC/pawn Scripting / Re: Spawn problems?
« on: February 14, 2012, 06:35:51 pm »
Quote
World Bounds somehow you changed?

Code: [Select]

SetWorldBounds(Float:x_max,Float:x_min,Float:y_max,Float:y_min);


For total map need to be this:

Code: [Select]

SetWorldBounds(5000.0,-5000.0,5000.0,-5000.0);


Not working again player jumping and my Player statrt pos crash

7
mIRC/pawn Scripting / Re: Spawn problems?
« on: February 14, 2012, 04:22:48 pm »
Hey the error removed but now when i spawn palyer the player Jumping jumping
And my Player start pos removed... what i do?

8
mIRC/pawn Scripting / Re: Spawn problems?
« on: February 14, 2012, 04:19:51 pm »
Rocking JAY Rocking man...
Thanks Alot...

9
mIRC/pawn Scripting / Re: Spawn problems?
« on: February 14, 2012, 04:01:42 pm »
iam getting this error

10
mIRC/pawn Scripting / Re: Spawn problems?
« on: February 14, 2012, 04:00:55 pm »
C:\Documents and Settings\Administrator\Desktop\New Folder (2)\BSG.pwn(342) : error 021: symbol already defined: "rand"
C:\Documents and Settings\Administrator\Desktop\New Folder (2)\BSG.pwn(343) : error 021: symbol already defined: "rand"
C:\Documents and Settings\Administrator\Desktop\New Folder (2)\BSG.pwn(344) : error 021: symbol already defined: "rand"
C:\Documents and Settings\Administrator\Desktop\New Folder (2)\BSG.pwn(345) : error 021: symbol already defined: "rand"

11
mIRC/pawn Scripting / Re: Spawn problems?
« on: February 14, 2012, 03:37:46 pm »
Thanks very very much brother.....

12
mIRC/pawn Scripting / Re: Spawn problems?
« on: February 14, 2012, 03:20:30 pm »
Yeah bro i put it,
But cop too spawn at mansion,,
I dont want that...
I want cop only spawn at police stations of different city,,

13
mIRC/pawn Scripting / Spawn problems?
« on: February 14, 2012, 02:17:22 pm »
Iam using random spawn...
i wish that each player spawn at other locations differ from others....
like Tommy spawn around vercetti mansion and around mansion,
and Cop spawn on diferrent City Police Stations....

Can any one help me Please...

14
mIRC/pawn Scripting / Re: Only Little Bit Help i want?
« on: February 14, 2012, 07:43:43 am »
I am not copied thinking of another server i only make my stuff...
When i completed,then i make server better than other...
But the problem is that i am Only 2nd step begginer...
that's why i need help of some PRo's.....

15
mIRC/pawn Scripting / Re: Only Little Bit Help i want?
« on: February 12, 2012, 07:52:36 am »
thanks fuzzy i try it,,
Another thing i want to ask,
Is there any system for Pawn to spawn characters at random loc.
Like KA server...

Pages: [1] 2