Jump to content

Question

Posted

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

 

logo.png

5 answers to this question

Recommended Posts

Posted

...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;
}

 

Posted

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

Acel clan TAG se refera la acel tag al clanului exemplu : RSR , uB , NN , uTD etc

na 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]

 

logo.png

Posted

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(...);

Posted

D:\seby xD\T Server\gamemodes\bare.pwn(1720) : error 010: invalid function or declaration

Imi 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]

 

logo.png

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.