GetPlayerFacingAngle(playerid, Angle) HELP!!!!!!
#2

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new name[MAX_PLAYER_NAME], file[256], Float:X, Float:Y, Float:Z, Float:Angle;
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerName(playerid, name, sizeof(name));
    GetPlayerFacingAngle(playerid, Angle);
    format(file, sizeof(file), SERVER_USER_FILE, name);
    if(gPlayerLogged[playerid] == 1)
    {
        dini_IntSet(file, "Skin", GetPlayerSkin(playerid));
        dini_IntSet(file, "Cash", GetPlayerMoney(playerid));
        dini_FloatSet(file, "PosX", X);
        dini_FloatSet(file, "PosY", Y);
        dini_FloatSet(file, "PosZ", Z);
        dini_IntSet(file, "Facing Angle", floatround(Angle, floatround_ceil));
    }
    gPlayerLogged[playerid] = 0;

    new String_Leaving[64], Name_Left[MAX_PLAYER_NAME];
    GetPlayerName(playerid,Name_Left,MAX_PLAYER_NAME);
    switch(reason)
    {
        case 0: format(String_Leaving,sizeof String_Leaving,"[SERVER]: %s left the server. (Timed out)",Name_Left);
        case 1: format(String_Leaving,sizeof String_Leaving,"[SERVER]: %s left the server. (Leaving)",Name_Left);
        case 2: format(String_Leaving,sizeof String_Leaving,"[SERVER]: %s left the server. (Kicked/Banned)",Name_Left);
    }
    SendClientMessageToAll(COLOR_YELLOW,String_Leaving);
    return 1;
}
Reply


Messages In This Thread
GetPlayerFacingAngle(playerid, Angle) HELP!!!!!! - by vakhtang - 19.01.2012, 13:00
Re: GetPlayerFacingAngle(playerid, Angle) HELP!!!!!! - by sabretur - 19.01.2012, 13:03
AW: GetPlayerFacingAngle(playerid, Angle) HELP!!!!!! - by Drebin - 19.01.2012, 13:03
Re: GetPlayerFacingAngle(playerid, Angle) HELP!!!!!! - by vakhtang - 19.01.2012, 13:07
Re: GetPlayerFacingAngle(playerid, Angle) HELP!!!!!! - by SuperViper - 19.01.2012, 14:42
Respuesta: Re: GetPlayerFacingAngle(playerid, Angle) HELP!!!!!! - by OPremium - 19.01.2012, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)