15.10.2012, 03:28
Galera eu quera eu quero fs codigo sei la, e um que o cara comeзa com uma skin padrao,tipo aquela de rpg,o cara ja comeзa com uma skin de pedestre...eu quero um fs,desse tipo ai Vlw
SetPlayerSkin(playerid, 23);
#include <a_samp>
#include <DOF2>
new SkinPlayer[MAX_PLAYERS];
public OnFilterScriptExit()
{
DOF2_Exit();
return 1;
}
public OnPlayerConnect(playerid)
{
new string[74];
new nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, sizeof(nome));
format(string, sizeof(string), "Skins.txt");
if(!DOF2_FileExists(string)){DOF2_CreateFile(string);}
format(string, sizeof string, "Skin - %s", nome);
SkinPlayer[playerid] = DOF2_GetInt("Skins.txt", string);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new nome[34];
new string[74];
GetPlayerName(playerid, nome, 24);
format(string, sizeof(string), "Skin - %s", nome);
DOF2_SetInt("Skins.txt", string, GetPlayerSkin(playerid));
DOF2_SaveFile();
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerSkin(playerid, SkinPlayer[playerid]);
return 1;
}