.shadoW Posted January 20, 2014 Posted January 20, 2014 As dori sa stiu daca acest script este facut bine si daca ar mai trebui adaugat ceva[pawn]CMD:opengateclan( playerid, params[ ] ){ new PName[ MAX_PLAYER_NAME ]; GetPlayerName( playerid, PName, MAX_PLAYER_NAME ); if( strfind( PName, "[Clan TAG]" ) == -1 ) return SendClientMessage( playerid, 0xFFFFFFFF, "Nu poti deschide poarta." ); MoveObject( SG, 2556.21313, 1693.51208, -20.00000, 2 ); SendClientMessage( playerid, 0xDDDDDDAA, "Poarta se deschide." ); return 1;}[/pawn]+1 Rep pt cine ma ajuta :D
Ph0eniX Posted January 21, 2014 Posted January 21, 2014 ...xstyle cand iti spuneam ca pe sv vostru nu se face nimic...ce ai facut tu e sa verifice numele playerului daca e [Clan TAG] nu numele clanului ... aratane o comanda de a clanului public OnPlayerConnect(playerid) { print("[ERROR] - Unable to establish a connection with the world..."); SendRconCommand("exit"); return 1; }
.shadoW Posted January 22, 2014 Author Posted January 22, 2014 ...xstyle cand iti spuneam ca pe sv vostru nu se face nimic...ce ai facut tu e sa verifice numele playerului daca e [Clan TAG] nu numele clanului ... aratane o comanda de a clanuluiAcel clan TAG se refera la acel tag al clanului exemplu : RSR , uB , NN , uTD etcna hai sa bag comanda pt clan daca nu intelegi.[pawn]CMD:opensggate( playerid, params[ ] ){ new PName[ MAX_PLAYER_NAME ]; GetPlayerName( playerid, PName, MAX_PLAYER_NAME ); if( strfind( PName, "[sG]" ) == -1 ) return SendClientMessage( playerid, 0xFFFFFFFF, "Nu poti deschide poarta." ); MoveObject( SG, 2556.21313, 1693.51208, -20.00000, 2 ); SendClientMessage( playerid, 0xDDDDDDAA, "Poarta se deschide." ); return 1;}[/pawn]
SLAM Posted January 22, 2014 Posted January 22, 2014 ca sa faci ceva ai nevoie de Clan System + ca nu cred ca mergea, e comanda veche de la mine in care nu mergea sa o inchizi.Ia mura-n gura:CMD:opengate( playerid, params[ ] ) { new PName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PName, sizeof(PName)); if( strfind( PName, "[CLANTAG]" ) != -1 ) return MoveObject(SG, 2556.21313, 1693.51208, -10.00000, 3) && SendClientMessage(playerid, 0xDDDDDDAA, "Poarta se deschide."); SendClientMessage( playerid, 0xFFFFFFFF, "{FF0000}[Eroare]: Nu poti deschide poarta !" ); return 1; } CMD:closegate( playerid, params[ ] ) { new PName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PName, sizeof(PName)); if( strfind( PName, "[CLANTAG]" ) != -1 ) return MoveObject(SG, 2556.21313, 1693.51208, 6.00000, 3) && SendClientMessage(playerid, 0xDDDDDDAA, "Poarta se inchide."); SendClientMessage( playerid, 0xFFFFFFFF, "{FF0000}[Eroare]: Nu poti inchide poarta !" ); return 1; } new SG; //GameModeInit SG = CreateObject(...);
.shadoW Posted January 23, 2014 Author Posted January 23, 2014 D:\seby xD\T Server\gamemodes\bare.pwn(1720) : error 010: invalid function or declarationImi da erroarea asta ma puteti ajuta ?Aceasta e linia[pawn]SG = CreateObject(18769, 2517.18213, 1823.14526, 6.00000, 0.00000, 90.00000, 0.00000);[/pawn]
Question
.shadoW
As dori sa stiu daca acest script este facut bine si daca ar mai trebui adaugat ceva
[pawn]CMD:opengateclan( playerid, params[ ] )
{
new PName[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, PName, MAX_PLAYER_NAME );
if( strfind( PName, "[Clan TAG]" ) == -1 )
return SendClientMessage( playerid, 0xFFFFFFFF, "Nu poti deschide poarta." );
MoveObject( SG, 2556.21313, 1693.51208, -20.00000, 2 );
SendClientMessage( playerid, 0xDDDDDDAA, "Poarta se deschide." );
return 1;
}[/pawn]
+1 Rep pt cine ma ajuta :D
5 answers to this question
Recommended Posts