Help plz
#2

then i used this dcmd one, this also didnt work
pawn Код:
dcmd_async(playerid, params[])
{
    new targetid, string1[128], string2[128];
    if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_RED, "Usage: /kick [playerid/partofname]");
    if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_RED, "Player not connected!");
    if(GetAdminLevel(playerid) >= 2)
    {
    if(GetPlayerState(targetid) == 9|| GetPlayerState(targetid) == 5 || GetPlayerState(targetid) == 6 ||GetPlayerState(targetid) == 4|| GetPlayerState(targetid) == 0)
            {
                SendClientMessage(playerid,COLOR_YELLOW," Unable to start synchronization");
                return 1;
            }
    if(IsPlayerInAnyVehicle(targetid))
            {
            SendClientMessage(playerid,COLOR_YELLOW," Unable to start synchronization while in a vehicle");
            return 1;
            }
    new targetplayer[MAX_PLAYER_NAME];
    new adminplayer[MAX_PLAYER_NAME];
    GetPlayerName(targetid, targetplayer, sizeof(targetplayer));
  GetPlayerName(playerid, adminplayer, sizeof(adminplayer));

    sync[targetid] = 1;
    SyncPlayer(targetid);
    format(string1, sizeof(string1), "You have been Synced by %s!",adminplayer);
    SendClientMessage(targetid,COLOR_YELLOW, string1);
    format(string2, sizeof(string2), "You have Synced %s!",targetplayer);
    SendClientMessage(playerid,COLOR_YELLOW,string2);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,COLOR_YELLOW,"You must be level 2 to use this command");
    }
    return 1;
}
Reply


Messages In This Thread
Help plz - by cloud9 - 19.07.2009, 09:15
Re: Help plz - by cloud9 - 19.07.2009, 09:42

Forum Jump:


Users browsing this thread: 2 Guest(s)