20.09.2011, 22:05
Does anybody know if any of these are fixed yet in 0.3d? I haven't had time to test them yet.
#include <a_samp>
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 0.0, 12.0, 4.0, 269.1425, 34, 100, 0, 0, 0, 0);
AddStaticVehicle(519, 0.0, 0.0, 5.0, 0.0, 0, 0);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 0.0, 12.0, 4.0);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerDisconnect(playerid)
{
for (new i = 0; i != MAX_PLAYER_ATTACHED_OBJECTS; ++i)
{
new str[64];
format(str, sizeof (str), "%d: %d", i, IsPlayerAttachedObjectSlotUsed(playerid, i));
print(str);
}
}
public OnPlayerSpawn(playerid)
{
SetPlayerAttachedObject(playerid, 0, 1609, 2);
}
0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 8: 0 9: 0
It might be related to that bug, but it is still present in the latest RC:
pawn Код:
Код:
0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 8: 0 9: 0 I'm not sure if the fact that "IsPlayerAttachedObjectSlotUsed" returns 0 in "OnPlayerDisconnect" is related to the fact that the objects don't disappear (seems likely), but in my code at least I treated them as separate (as I didn't notice the link till you mentioned that it worked fine). |
65536 131072 196608 262144 327680 393216 458752 524288 589824 655360 720896 786432 851968 917504 983040 1048576 etc..
Interesting, but why should I use "IsPlayerConnected(65536)"?
|
a_players.inc[*]SpawnPlayer - Kills the player if they are in a vehicle.
|
SpawnPlayer() -> Totally fixed in 0.3e, works without any problem in vehicle. Thanks Kye
Edit: Not fixed.. |
ClearAnimations(playerid); SpawnPlayer(playerid);