player connect msg help
#1

PHP код:
public OnPlayerConnect(playerid)
{
    
RemoveBuildingForPlayer(playerid11291, -1902.0859, -202.343827.71880.25); // barrels
    
RemoveBuildingForPlayer(playerid11290, -1902.0859, -202.343827.71880.25); // barrels
    // stuff below removes the ugly fences.
    
RemoveBuildingForPlayer(playerid1411, -1886.4766, -179.851618.85160.25);
    
RemoveBuildingForPlayer(playerid1411, -1860.2656, -179.851618.85160.25);
    
RemoveBuildingForPlayer(playerid1411, -1865.5391, -179.851618.85160.25);
    
RemoveBuildingForPlayer(playerid1411, -1870.8047, -179.851618.85160.25);
    
RemoveBuildingForPlayer(playerid1411, -1876.0781, -179.851618.85160.25);
    
RemoveBuildingForPlayer(playerid1411, -1881.2891, -179.851618.85160.25);
    
RemoveBuildingForPlayer(playerid1411, -1846.8516, -209.054718.85160.25);
    
RemoveBuildingForPlayer(playerid1411, -1846.8516, -214.351618.85160.25);
    
RemoveBuildingForPlayer(playerid1411, -1846.8516, -219.640618.85160.25);
    
RemoveBuildingForPlayer(playerid1411, -1846.8516, -193.179718.85160.25);
    
RemoveBuildingForPlayer(playerid1411, -1846.8516, -198.476618.85160.25);
    
RemoveBuildingForPlayer(playerid1411, -1846.8516, -203.765618.85160.25);
    
RemoveBuildingForPlayer(playerid1411, -1846.8516, -182.601618.85160.25);
    
RemoveBuildingForPlayer(playerid1411, -1846.8516, -187.890618.85160.25);
    
RemoveBuildingForPlayer(playerid1411, -1849.7188, -179.851618.85160.25);
    
RemoveBuildingForPlayer(playerid1411, -1854.9922, -179.851618.85160.25);
    
RemoveBuildingForPlayer(playerid1411, -1847.3672, -143.703112.48440.25);
    
RemoveBuildingForPlayer(playerid1411, -1847.3672, -138.429712.48440.25);
    
RemoveBuildingForPlayer(playerid1411, -1847.3672, -133.164112.48440.25);
    
RemoveBuildingForPlayer(playerid1411, -1870.2344, -124.789112.48440.25);
    
///////////////
    
sdisplay[playerid] = TextDrawCreate(10.0,200.0," "); // This Creates Our Textdraw And Stores The Id In The Varible In Front
    
TextDrawSetShadow(sdisplay[playerid],0); // This Removes Our Textdraw's Shadow ( Makes Easier To Read )
    
TextDrawSetOutline(sdisplay[playerid],1); // This Adds A Black Outline To Our Textdraw ( Makes Easier To Read )
    
TextDrawFont(sdisplay[playerid], 2); // This Changes Our Textdraw's Font ( I Think This Ones Makes It Easier To Read )
    
TextDrawShowForPlayer(playerid,sdisplay[playerid]); // This Shows The User The Textdraw
    
RemoveBuildingForPlayer(playerid45801671.5078, -1343.335987.53910.25);
    
RemoveBuildingForPlayer(playerid47471671.5078, -1343.335987.53910.25);
    
RemoveBuildingForPlayer(playerid12151653.0, -1362.992216.97660.25);
    
RemoveBuildingForPlayer(playerid12151651.9531, -1361.718816.97660.25);
    
RemoveBuildingForPlayer(playerid12151651.9531, -1350.984416.97660.25);
    
RemoveBuildingForPlayer(playerid12151651.9531, -1335.507816.97660.25);
    
RemoveBuildingForPlayer(playerid12151653.0938, -1323.742216.97660.25);
    
RemoveBuildingForPlayer(playerid12151651.9531, -1324.992216.97660.25);
    
RemoveBuildingForPlayer(playerid12151689.9375, -1362.992216.97660.25);
    
RemoveBuildingForPlayer(playerid12151679.2188, -1362.992216.97660.25);
    
RemoveBuildingForPlayer(playerid12151663.7109, -1362.992216.97660.25);
    
RemoveBuildingForPlayer(playerid12151691.0938, -1361.890616.97660.25);
    
RemoveBuildingForPlayer(playerid46021671.5078, -1343.335987.53910.25);
    
RemoveBuildingForPlayer(playerid12151691.1563, -1351.101616.97660.25);
    
RemoveBuildingForPlayer(playerid12151663.6563, -1323.710916.97660.25);
    
RemoveBuildingForPlayer(playerid12151679.1719, -1323.765616.97660.25);
    
RemoveBuildingForPlayer(playerid12151691.125, -1335.734416.97660.25);
    
RemoveBuildingForPlayer(playerid12151691.1484, -1324.890616.97660.25);
    
RemoveBuildingForPlayer(playerid12151689.9375, -1323.765616.97660.25);
    
TextDrawShowForPlayer(playeridRandomMessages);
       
TextDrawShowForPlayer(playeridTeleportMessages);
    
TextDrawShowForPlayer(playeridStrodText);
    
TextDrawShowForPlayer(playerid********Msg);
    
TextDrawShowForPlayer(playeridChatMsg);
    
PlayerInfo[playerid][HasPlutonium] = 2;
    
PlayAudioStreamForPlayer(playerid"http://www.trance.fm/play/progressive320.pls");
    
PlayerInfo[playerid][MaxDMWarnings] = 0;
     
SpeedBoostMultiplier[playerid] = 0.0;
    if(
IsPlayerNPC(playerid)) return 1;
    else if(!
IsPlayerNPC(playerid))
    {
        new 
rand random(sizeof(PlayerColors));
        
SetPlayerColor(playeridPlayerColors[rand]);
        
SpeedBoostMultiplier[playerid] = 0.0;
        new 
str[100], pname[MAX_PLAYER_NAME];
        
GetPlayerName(playeridpnamesizeof(pname));
        
format(strsizeof(str), "{00FF00}%s(ID:%d) {FFFFFF}has Joined {00FF00}Samp{FF0000}Drifting {0000FF}Community"pnameplayerid);
        
SendClientMessageToAll(COLOR_WHITEstr);
        new 
file[300];
        new 
name[MAX_PLAYER_NAME];
        
GetPlayerName(playeridnamesizeof(name));
        
format(file,sizeof(file),"nAdmin/Users/%s.ini",name); 





THIS SHOWING THE OUTPUT LIKE THISLAYER(0) HAS JOINED THE SERVER.

I WANT THISLAYER(0) HAS JOINED THE SERVER[IP-35.325----][COUNTRY]

PLEASE HELP CAN U CORRECT THIS CODE?
Reply
#2

search GeoIP Plugin in SAMP
Reply
#3

but where i have to edit ??this command this isnt means that ur helping me
Reply
#4

please someone help where i have to put player country code i need help!!
Reply
#5

add more code pls.
Reply
#6

Check this link. If you know how too read you will understand how to do it.
http://forum.sa-mp.com/showthread.ph...ghlight=lookup
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)