Search Results
Use the AddStaticVehicle function under OnGameModeInit.
212
It works perfectly, you just have to define your gate object ID, and create a new timer. It wont complicate things.
223
Use sscanf and zcmd; They are much more easier and faster.
71
Try this:
pawn Код:
static Float: eventPos[ 3 ];public OnPlayerCommandText( playerid, cmdtext[ Â ] ) {Â Â if( !strcmp( "/seteventpos", cmdtext, true ) ) {Â Â Â Â new Float: playerPos[ 3 ];Â...
60
You can use the MapAndreas plugin.
286
pawn Код:
new szDir[ 64 ];format( szDir, sizeof szDir, "%s.txt", VARIABLE );fopen( szDir, io_read );
91
Use the SetPlayerSkillLevel function.
( https://sampwiki.blast.hk/wiki/SetPlayerSkillLevel )
227
pawn Код:
if( IsNumeric( params ) )
136
You can't use the OnPlayerCommandText function if you included the zcmd include file. So change the OnPlayerCommandText to "OnPlayerCommandRecieved( playerid, cmdtext, success )" .
173
Quote:
Originally Posted by johnathon956
Quote:
Originally Posted by ZeRo_HUN
Quote:
Originally Posted by johnathon956
im using it but i want it to have 3 attemts b...
138
Try it with a loop:
pawn Код:
for( new x = 0; x < sizeof ArmourPickup; ++x ) { if( pickupid == ArmourPickup[ x ] ) {  //Other codes... }}
100
Quote:
Originally Posted by johnathon956
im using it but i want it to have 3 attemts before it kicks
pawn Код:
public OnRconLoginAttempt(ip[], password[], success){Â if(!success) //I...
138
You need to compare it as a string :
pawn Код:
if( !strcmp( STRD, "Standard Member" ) ) print("* Error. Please Modify Document STRD Name To Something Else");
196
You must get that player's name, who disconnects( without iteration ).
pawn Код:
public OnPlayerDisconnect(playerid,reason){Â new string[ 128 ];Â switch( reason ) {Â Â case 0 : format( string...
184
Quote:
Originally Posted by MR Loose Brackets
can it be used to save players stats instead of dini
For sure. And MySQL faster than the simple file-writing.
137
You must delete this line:
Код:
#if defined filterscript
And after that this one:
Код:
#endif
And remove the OnFilterScriptInit and OnFilterScriptExit functions.
182
You can do it with a global variable. Example :
Код:
//It will store the players' skin
new iPlayerSkin[ MAX_PLAYERS ];
public OnPlayerCommandText( playerid, cmdtext[ ] ) {
if( strcmp( "/onduty...
119
If you want to change the name of the map( so the others can see it at the server info ) then put this in the server.cfg :
Код:
mapname xyz
( And change xyz )
147
Nice work Epsilon, that's a fantastic idea.
249