17.10.2015, 18:09
See what I did
public OnPlayerConnect(playerid) //GIVE ME A SECONDkk
{
new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s has joined the server from", pname);
SendClientMessageToAll(0xB4B5B7FF, string);
gOoc[ playerid ] = 0; Logged[ playerid ] = 0;
// Reset stats!
PlayerInfo[ playerid ][ pCash ] = 0;
PlayerInfo[ playerid ][ pAdmin ] = 0;
PlayerInfo[ playerid ][ pSex ] = 0;
PlayerInfo[ playerid ][ pAge ] = 0;
PlayerInfo[ playerid ][ pPos_x ] = 0.0;
PlayerInfo[ playerid ][ pPos_y ] = 0.0;
PlayerInfo[ playerid ][ pPos_z ] = 0.0;
PlayerInfo[ playerid ][ pSkin ] = 0;
PlayerInfo[ playerid ][ pTeam ] = 0;
PlayerInfo[ playerid ][ pAccent ] = 0;
PlayerInfo[ playerid ] [ pWarns ] = 0;
PlayerInfo[playerid][SpawnDance] = true;
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1 ,0,0,0,-1);
SetPlayerInterior(playerid, 17);
TogglePlayerSpectating(playerid, false);
SetPlayerPos(playerid, 487.6174,-14.5198,1000.6797);
SetPlayerFacingAngle(playerid, 270);
SetPlayerCameraLookAt(playerid, 487.6174,-14.5198,1000.6797);
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1 ,0,0,0,-1);
SetPlayerCameraPos(playerid, 492.2111,-14.6017,1000.6719);
SpectatePlayer[playerid]=-1;
if(fexist(UserPath(playerid)))
public OnPlayerConnect(playerid) //GIVE ME A SECONDkk
{
new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s has joined the server from", pname);
SendClientMessageToAll(0xB4B5B7FF, string);
gOoc[ playerid ] = 0; Logged[ playerid ] = 0;
// Reset stats!
PlayerInfo[ playerid ][ pCash ] = 0;
PlayerInfo[ playerid ][ pAdmin ] = 0;
PlayerInfo[ playerid ][ pSex ] = 0;
PlayerInfo[ playerid ][ pAge ] = 0;
PlayerInfo[ playerid ][ pPos_x ] = 0.0;
PlayerInfo[ playerid ][ pPos_y ] = 0.0;
PlayerInfo[ playerid ][ pPos_z ] = 0.0;
PlayerInfo[ playerid ][ pSkin ] = 0;
PlayerInfo[ playerid ][ pTeam ] = 0;
PlayerInfo[ playerid ][ pAccent ] = 0;
PlayerInfo[ playerid ] [ pWarns ] = 0;
PlayerInfo[playerid][SpawnDance] = true;
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1 ,0,0,0,-1);
SetPlayerInterior(playerid, 17);
TogglePlayerSpectating(playerid, false);
SetPlayerPos(playerid, 487.6174,-14.5198,1000.6797);
SetPlayerFacingAngle(playerid, 270);
SetPlayerCameraLookAt(playerid, 487.6174,-14.5198,1000.6797);
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1 ,0,0,0,-1);
SetPlayerCameraPos(playerid, 492.2111,-14.6017,1000.6719);
SpectatePlayer[playerid]=-1;
if(fexist(UserPath(playerid)))