Dio skripte: [ pawn ][ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ] /code ]
Slika/video ingame problema(obavezno ako je ingame problem):
90 / 100 XP
// CMD //
YCMD:war(playerid, params[], help)
{
#pragma unused help
if(UlogovanProvera == 0) return SCM(playerid,-1,""PPLAVA"(("SIVA" Indigo Gaming"PPLAVA" )) "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo < 1) return SCM(playerid,-1,""PPLAVA"(("SIVA" Indigo Gaming"PPLAVA" )) "SIVA"Samo Admin!");
if(WarZapocet == 1) return SCM(playerid,-1,""PPLAVA"(("SIVA" Indigo Gaming"PPLAVA" )) "SIVA"War je vec pokrenut!");
new id, tim;
if(AdminDuty == 0) return SCM(playerid,-1,""PPLAVA"(("SIVA" Indigo Gaming"PPLAVA" )) "SIVA"Morate biti na admin duznosti!");
if(sscanf(params, "ud", id, tim)) return SendClientMessage(playerid,-1, ""ORANGE"IG:RPG Pomoc | "BELA"/war [ID/Ime] ");
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, ""ZUTA" "SIVA"Pogresan ID!");
PlayerInfo = tim;
new string;
format(string, sizeof(string), ""SIVA""PPLAVA"(("SIVA" Indigo Gaming"PPLAVA" )) "ZUTA"%s te je pozvao u tim $%d.", GetName(playerid), tim);
SendClientMessage(id, -1, string);
format(string, sizeof(string), ""SIVA""PPLAVA"(("SIVA" Indigo Gaming"PPLAVA" )) "ZUTA"Pozvali ste igraca %s u tim %d.", GetName(id), tim);
SendClientMessage(playerid, -1, string);
SavePlayer(id);
return 1;
}
// DIALOG //
fDialog(3010)
{
if( WARPInfo[ playerid ][ warID ] == -1 ) return SendErrorMessage( playerid, "Nisi u waru." );
new player, w = WARPInfo[ playerid ][ warID ];
if( sscanf( inputtext, "u", player ) ) return SPD( playerid, 3010, DSI, "Ubacivanje igraca", "Inesi ID igraca iz tvoje organizacije", "Potvrdi", "Odustani" );
if( WARInfo[ w ][ warActive ] == false ) return SendErrorMessage( playerid, "WAR jos nije startovan.");
if( player == playerid ) return SPD( playerid, 3010, DSI, "Ubacivanje igraca", "Inesi ID igraca iz tvoje organizacije", "Potvrdi", "Odustani" );
if( player == IPI ) return SPD( playerid, 3010, DSI, "Ubacivanje igraca", "Inesi ID igraca iz tvoje organizacije", "Potvrdi", "Odustani" );
if( WARPInfo[ player ][ warID ] != -1 ) return SPD( playerid, 3010, DSI, "Ubacivanje igraca", "Inesi ID igraca iz tvoje organizacije", "Potvrdi", "Odustani" );
if( WARPInfo[ playerid ][ warTeam ][ 0 ] == true ) {
if( WARInfo[ w ][ warTeamMembers ][ 0 ] >= WARInfo[ w ][ warMapMembers ] ) return SendErrorMessage(playerid, "Vec imas maksimalni broj clanova u waru.");
GetPlayerPos( player, WARPInfo[ player ][ LastPosition ][ 0 ], WARPInfo[ player ][ LastPosition ][ 1 ], WARPInfo[ player ][ LastPosition ][ 2 ] );
WARPInfo[ player ][ LastVirtualWorld ] = GetPlayerVirtualWorld( player );
WARPInfo[ player ][ LastInterior ] = GetPlayerInterior( player );
new rand1 = random( sizeof( warMap1Team1 ) );
new rand21 = random( sizeof( warMap2Team1 ) );
new rand31 = random( sizeof( warMap3Team1 ) );
new rand41 = random( sizeof( warMap4Team1 ) );
new rand51 = random( sizeof( warMap5Team1 ) );
if( WARInfo[ w ][ warMap ] == 1 ) {
JBC_SetPlayerPos( player, warMap1Team1[ rand1 ][ 0 ], warMap1Team1[ rand1 ][ 1 ],warMap1Team1[ rand1 ][ 2 ] );
SetPlayerInterior( player, 0 );
}
else if( WARInfo[ w ][ warMap ] == 2 ) {
JBC_SetPlayerPos( player, warMap2Team1[ rand21 ][ 0 ], warMap2Team1[ rand21 ][ 1 ],warMap2Team1[ rand21 ][ 2 ] );
SetPlayerInterior( player, 10 );
}
else if( WARInfo[ w ][ warMap ] == 3 ) {
JBC_SetPlayerPos( player, warMap3Team1[ rand31 ][ 0 ], warMap3Team1[ rand31 ][ 1 ],warMap3Team1[ rand31 ][ 2 ] );
SetPlayerInterior( player, 0 );
}
else if( WARInfo[ w ][ warMap ] == 4 ) {
JBC_SetPlayerPos( player, warMap4Team1[ rand41 ][ 0 ], warMap4Team1[ rand41 ][ 1 ],warMap4Team1[ rand41 ][ 2 ] );
SetPlayerInterior( player, 0 );
}
else if( WARInfo[ w ][ warMap ] == 5 ) {
JBC_SetPlayerPos( player, warMap5Team1[ rand51 ][ 0 ], warMap5Team1[ rand51 ][ 1 ],warMap5Team1[ rand51 ][ 2 ] );
SetPlayerInterior( player, 0 );
}
JBC_GivePlayerWeapon( player, WARInfo[ w ][ warGuns ][ 0 ], 300 );
JBC_GivePlayerWeapon( player, WARInfo[ w ][ warGuns ][ 1 ], 300 );
JBC_GivePlayerWeapon( player, WARInfo[ w ][ warGuns ][ 2 ], 300 );
JBC_GivePlayerWeapon( player, WARInfo[ w ][ warGuns ][ 3 ], 300 );
SetPlayerVirtualWorld( player, w );
JBC_SetPlayerHealth( player, 100 );
JBC_SetPlayerArmour( player, 100 );
WARInfo[ w ][ warTeamMembers ][ 0 ]++;
ResetWarStatistics( player );
WARPInfo[ player ][ warTeam ][ 0 ] = true;
WARPInfo[ player ][ warID ] = w;
SCM( player, -1, "War chat /wp." );
SCM( playerid, -1, "Ubacio si svog clana." );
WarTDControl( player, true );
SetWarStatsTD( w );
}
else if( WARPInfo[ playerid ][ warTeam ][ 1 ] == true ) {
if( WARInfo[ w ][ warTeamMembers ][ 1 ] >= WARInfo[ w ][ warMapMembers ] ) return SendErrorMessage(playerid, "Imate maksimalan broj clanova u waru!");
GetPlayerPos( player, WARPInfo[ player ][ LastPosition ][ 0 ], WARPInfo[ player ][ LastPosition ][ 1 ], WARPInfo[ player ][ LastPosition ][ 2 ] );
WARPInfo[ player ][ LastVirtualWorld ] = GetPlayerVirtualWorld( player );
WARPInfo[ player ][ LastInterior ] = GetPlayerInterior( player );
new rand2 = random( sizeof( warMap1Team2 ) );
new rand22 = random( sizeof( warMap2Team2 ) );
new rand32 = random( sizeof( warMap3Team2 ) );
new rand42 = random( sizeof( warMap4Team2 ) );
new rand52 = random( sizeof( warMap5Team2 ) );
if( WARInfo[ w ][ warMap ] == 1 ) {
JBC_SetPlayerPos( player, warMap1Team2[ rand2 ][ 0 ], warMap1Team2[ rand2 ][ 1 ],warMap1Team2[ rand2 ][ 2 ] );
SetPlayerInterior( player, 0 );
}
else if( WARInfo[ w ][ warMap ] == 2 ) {
JBC_SetPlayerPos( player, warMap2Team2[ rand22 ][ 0 ], warMap2Team2[ rand22 ][ 1 ],warMap2Team2[ rand22 ][ 2 ] );
SetPlayerInterior( player, 10 );
}
else if( WARInfo[ w ][ warMap ] == 3 ) {
JBC_SetPlayerPos( player, warMap3Team2[ rand32 ][ 0 ], warMap3Team2[ rand32 ][ 1 ],warMap3Team2[ rand32 ][ 2 ] );
SetPlayerInterior( player, 0 );
}
else if( WARInfo[ w ][ warMap ] == 4 ) {
JBC_SetPlayerPos( player, warMap4Team2[ rand42 ][ 0 ], warMap4Team2[ rand42 ][ 1 ],warMap4Team2[ rand42 ][ 2 ] );
SetPlayerInterior( player, 0 );
}
else if( WARInfo[ w ][ warMap ] == 5 ) {
JBC_SetPlayerPos( player, warMap5Team2[ rand52 ][ 0 ], warMap5Team2[ rand52 ][ 1 ],warMap5Team2[ rand52 ][ 2 ] );
SetPlayerInterior( player, 0 );
}
JBC_GivePlayerWeapon( player, WARInfo[ w ][ warGuns ][ 0 ], 300 );
JBC_GivePlayerWeapon( player, WARInfo[ w ][ warGuns ][ 1 ], 300 );
JBC_GivePlayerWeapon( player, WARInfo[ w ][ warGuns ][ 2 ], 300 );
JBC_GivePlayerWeapon( player, WARInfo[ w ][ warGuns ][ 3 ], 300 );
SetPlayerVirtualWorld( player, w );
JBC_SetPlayerHealth( player, 100 );
JBC_SetPlayerArmour( player, 100 );
WARInfo[ w ][ warTeamMembers ][ 1 ]++;
ResetWarStatistics( player );
WARPInfo[ player ][ warTeam ][ 1 ] = true;
WARPInfo[ player ][ warID ] = w;
SCM( player, -1, "War chat /wp." );
SCM( playerid, -1, "Ubacio si svog clana." );
WarTDControl( player, true );
SetWarStatsTD( w );
}
return 1;
}90 / 100 XP
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava