18.06.2010, 23:18
Guys, I beg you, I need your answer really!
I will make it simple and clear for you to understand, first I use Dini saving system.
Second, I already did
in "stock PlayerSave(playerid)"
And did
in /login command.
The problem is when someone does /login, he doesn't get into team, he still can request class...
I want the requesting system to be removed.
I removed this
But I still can request class, I mean in the LV supermarket, and can't see players, but can change it and request anyteam!!
ONcE AGAIN, I really want that if someone /login and when successful, he gets into team in his userfile.
Thanks.
I will make it simple and clear for you to understand, first I use Dini saving system.
Second, I already did
Код:
dini_IntSet(file, "Team", GetPlayerTeam(playerid));
And did
Код:
SetPlayerTeam(playerid, dini_Int(file, "Team"));
The problem is when someone does /login, he doesn't get into team, he still can request class...
I want the requesting system to be removed.
I removed this
Код:
public OnPlayerRequestClass(playerid,classid) { SetPlayerPos(playerid, -250.9738, 2585.6497,63.5703); SetPlayerFacingAngle(playerid, 210.3500); SetPlayerCameraPos(playerid, -248.9410, 2581.5327, 64.9334); SetPlayerCameraLookAt(playerid, -250.9738, 2585.6497,63.5703); ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1); //smooth dancing. It's most fitting to the music PlayerPlaySound(playerid, 1097,-119.9460,23.1096,12.2238); //music, duh if (PlayerInfo[playerid][SpawnDance]) PlayerInfo[playerid][SpawnTimer] = SetTimerEx("MoveCamera", 50, true, "i", playerid); PlayerInfo[playerid][SpawnDance] = false; //preventing the timer to execute again SetPlayerTeamFromClass(playerid, classid); return 1; } SetPlayerTeamFromClass(playerid, classid) { if (classid == 0) { gTeam[playerid] = 0; return 1; } else if (classid == 1) { gTeam[playerid] = 1; return 1; } else if (classid == 2) { gTeam[playerid] = 2; return 1; } else if (classid == 3) { gTeam[playerid] = 3; return 1; } else if (classid == 4) { gTeam[playerid] = 4; return 1; } else if (classid == 5) { gTeam[playerid] = 5; return 1; } return 1; }
ONcE AGAIN, I really want that if someone /login and when successful, he gets into team in his userfile.
Thanks.