Jump to content
  • 0

Kick


Ryder_RO

Question

salut Sa-Mp.ro

Am o mare problema

oricine ar intra pe server ii da kick

http://imageshack.us/photo/my-images/684/unledswy.png/

Cred ca var folosi si onplayerconnect

public OnPlayerConnect(playerid)
{
//Welcome to RGS================================================================================================================================
	TextDrawShowForPlayer(playerid, Welcome);
	TextDrawShowForPlayer(playerid, to);
	TextDrawShowForPlayer(playerid, RGS);
	TextDrawShowForPlayer(playerid, commands);
//=================================================================================================================================
	TextDrawShowForPlayer(playerid, intrare1);
	TextDrawShowForPlayer(playerid, intrare2);
	TextDrawShowForPlayer(playerid, intrare3);
	TextDrawShowForPlayer(playerid, intrare4);
	TextDrawShowForPlayer(playerid, intrare5);
	TextDrawShowForPlayer(playerid, intrare6);
//TextDraw la intrarea in game================================================================================================================================
	TextDrawShowForPlayer(playerid, Owner);
	TextDrawShowForPlayer(playerid, Ryder_RO);
	TextDrawShowForPlayer(playerid, owner1);
	TextDrawShowForPlayer(playerid, owner2);
	TextDrawShowForPlayer(playerid, owner3);
//==================================================================================================================================
    GetPlayerName(playerid, PName, sizeof(PName));
	GameTextForPlayer(playerid,"~r~Bine ~y~ai ~b~Venit!",6000,3);
	SetPlayerMapIcon(playerid, 38, 1222.5375, -2036.8712, 65.2266, 38, 0);
    SendClientMessage(playerid,COLOR_WHITE,"{FF0000}Romania {FFFF00}Galaxy {4764EF}Stunt");
	SendClientMessage(playerid, COLOR_WHITE,"Type {FF0000}/cmds {FFFFFF}for all commands!");
   	SendClientMessage(playerid, COLOR_WHITE,"Type {FF0000}/teles {FFFFFF}to see teleportation on the server!");
    SendClientMessage(playerid, COLOR_WHITE,"If you need a vehicle?Type {FF0000}/carmenu {FFFFFF}and if you want to tune cars write {FF0000}/tune");
	Locked[playerid] = 0;

    ShiftInfo[playerid] = (ShiftInfo[playerid] == false) ? (true) : (true);
    ShiftTimer[playerid] = SetTimerEx("ShiftFunction", 200, true, "e", playerid);

    format(stringOPT,128,"{1C41E8}[Id:%d] {F50742} %s",playerid);
    SendPlayerMessageToAll( playerid,  stringOPT );
    
     new strings[15];
	format(strings, 15, "]%d:100]",GetOnLinePlayers());
	TextDrawSetString(players, strings);
	TextDrawShowForPlayer(playerid, players);
    
    Vup[playerid] = 0;
    JumpSize[playerid] = 0;
    VupKey[playerid] = 0;

	GivePlayerMoney(playerid, 99999);
	GivePlayerWeapon(playerid,30,999);
	GivePlayerWeapon(playerid,33,999);
	GivePlayerWeapon(playerid,27,999);
	SetPlayerScore(playerid, 100);

	new playerName[25];GetPlayerName(playerid,playerName,25);
	if(strfind(playerName,"[RGS]",false)!=(-1))
	{
		SetPlayerColor(playerid,0x0000FFFF);
	}
	if(strfind(playerName,"[141]",false)!=(-1))
	{
		SetPlayerColor(playerid,0x33FF00FF);
	}
	return 1;
}

sa fie din cauza cu [RGS] si [141]?


EDIT : Imi face asa de cand am pus v2.0 pe host , la mn in pc nu imi da kick

468833_437698_362328_hiphop.jpg
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

In loc de:

if(strfind(playerName,"[RGS]",false)!=(-1))

Pune:

if( strfind( playerName, "[RGS]", true ) != -1 )


In loc de:

if(strfind(playerName,"[141]",false)!=(-1))

Pune:

if( strfind( playerName, "[141]", true ) != -1 )


Dane public ShiftFunction

142sj0l.png

Underground-GFX

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.