Search Results
Use the AddStaticVehicle function under OnGameModeInit.
44
It works perfectly, you just have to define your gate object ID, and create a new timer. It wont complicate things.
38
Use sscanf and zcmd; They are much more easier and faster.
17
Try this: pawn Код: static Float: eventPos[ 3 ];public OnPlayerCommandText( playerid, cmdtext[  ] ) {    if( !strcmp( "/seteventpos", cmdtext, true ) ) {        new Float: playerPos[ 3 ];Â...
16
pawn Код: new szDir[ 64 ];format( szDir, sizeof szDir, "%s.txt", VARIABLE );fopen( szDir, io_read );
15
Use the SetPlayerSkillLevel function. ( https://sampwiki.blast.hk/wiki/SetPlayerSkillLevel )
30
pawn Код: if( IsNumeric( params ) )
45
You can't use the OnPlayerCommandText function if you included the zcmd include file. So change the OnPlayerCommandText to "OnPlayerCommandRecieved( playerid, cmdtext, success )" .
37
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...
41
Try it with a loop: pawn Код: for( new x = 0; x < sizeof ArmourPickup; ++x ) {  if( pickupid == ArmourPickup[ x ] ) {    //Other codes...  }}
33
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...
41
You need to compare it as a string : pawn Код: if( !strcmp( STRD, "Standard Member" ) ) print("* Error. Please Modify Document STRD Name To Something Else");
27
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...
21
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.
25
You must delete this line: Код: #if defined filterscript And after that this one: Код: #endif And remove the OnFilterScriptInit and OnFilterScriptExit functions.
24
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...
16
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 )
17
Nice work Epsilon, that's a fantastic idea.
48