public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
SetPlayerPos(playerid, 1479.8406,-1351.1758,121.4929);//
ApplyAnimation(playerid, "PED", "SEAT_idle", 4.0999, 1, 0, 0, 0, 0);
TogglePlayerControllable(playerid, 0);
AnimPlay[playerid] = 1;
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GetPlayerIp(playerid, ipjucator, sizeof(ipjucator));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFFFF}Bine ai revenit pe Play Arena {7FFFD4}%s {FFFFFF}!\n{FFFFFF}IP: {7FFFD4}%s\n{FFFFFF}Acest nume este deja оnregistrat !\n{FFFFFF}Te rog scrie parola оn căsuta de mai jos pentru a putea intra оn joc:", sendername, ipjucator);
ShowPlayerDialog(playerid,2,DIALOG_STYLE_PASSWORD,"{FFFFFF}Conectare", string,"{FFFFFF}Conectare", "{FFFFFF}Quit"); //login
}
else
{
SetPlayerPos(playerid, 1479.8406,-1351.1758,121.4929);//
ApplyAnimation(playerid, "PED", "SEAT_idle", 4.0999, 1, 0, 0, 0, 0);
TogglePlayerControllable(playerid, 0);
ApplyAnimation(playerid, "PED", "SEAT_idle", 4.0999, 1, 0, 0, 0, 0);
AnimPlay[playerid] = 1;
GetPlayerIp(playerid, ipjucator, sizeof(ipjucator));
GetPlayerName(playerid, sendername, sizeof(sendername));
SetPlayerHealth(playerid, 100);
format(string, sizeof(string), "{FFFFFF}Bine ai venit pe Play Arena {7FFFD4}%s {FFFFFF}!.\n{FFFFFF}IP: {7FFFD4}%s\n{FFFFFF}Pentru a te putea inregistra,scrie o parolă оn căsuta de mai jos pentru a putea continua:", sendername, ipjucator);
ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,"{FFFFFF}Оnregistrare", string, "{FFFFFF}Inregistrare","{FFFFFF}Quit");
}
return 1;
}
No. I added the SetPlayerInterior after i post this and it doesn't work
|
after i put some dialogs, i type /tp2 and put me right where i want but when I connect to the server,i can't see the objects
|
You are using CreateObject or CreateDynamicObject?
CreateObject can be view every time and CreateDynamicObject will show after when you spawn. |
tmpobjid = CreateObject(19375,1475.996,-1354.330,120.407,0.000,90.000,0.000,300.000);
SetObjectMaterial(tmpobjid, 0, 14832, "lee_stripclub", "Strip_wood_floor", 0);