17.10.2012, 03:39
This u mean
forward Player_StreamPrep(iPlayer, Float: fPosX, Float: fPosY, Float: fPosZ, iTime);
public Player_StreamPrep(iPlayer, Float: fPosX, Float: fPosY, Float: fPosZ, iTime) {
switch(GetPVarInt(iPlayer, "StreamPrep")) {
case 0: {
ShowNoticeGUIFrame(iPlayer, 4);
TogglePlayerControllable(iPlayer, false);
//GameTextForPlayer(iPlayer, "~w~Collecting position...", iTime * 2, 3);
SetPVarInt(iPlayer, "StreamPrep", 1);
SetTimerEx("Player_StreamPrep", iTime / 2, false, "ifffi", iPlayer, fPosX, fPosY, fPosZ, iTime);
}
case 1: {
if(GetPlayerState(iPlayer) == PLAYER_STATE_DRIVER)
SetVehiclePos(GetPlayerVehicleID(iPlayer), fPosX, fPosY, fPosZ + 2.0);
else
SetPlayerPosEx(iPlayer, fPosX, fPosY, fPosZ + 0.5);
//GameTextForPlayer(iPlayer, "~w~Streaming objects...", iTime * 2, 3);
SetPVarInt(iPlayer, "StreamPrep", 2);
SetTimerEx("Player_StreamPrep", iTime / 2, false, "ifffi", iPlayer, fPosX, fPosY, fPosZ, iTime);
}
default: {
//GameTextForPlayer(iPlayer, "~r~Loaded!", 1000, 3);
HideNoticeGUIFrame(iPlayer);
TogglePlayerControllable(iPlayer, true);
if(GetPlayerState(iPlayer) == PLAYER_STATE_DRIVER)
SetVehiclePos(GetPlayerVehicleID(iPlayer), fPosX, fPosY, fPosZ);
else
SetPlayerPosEx(iPlayer, fPosX, fPosY, fPosZ);
if(GetPVarType(iPlayer, "MedicCall")) {
ClearAnimations(iPlayer);
ApplyAnimation(iPlayer, "KNIFE", "KILL_Knife_Ped_Die", 4.0, 0, 1, 1, 1, 0, 1);
}
DeletePVar(iPlayer, "StreamPrep");
}
}
SetCameraBehindPlayer(iPlayer);
Streamer_UpdateEx(iPlayer, fPosX, fPosY, fPosZ);
}
forward Player_StreamPrep(iPlayer, Float: fPosX, Float: fPosY, Float: fPosZ, iTime);
public Player_StreamPrep(iPlayer, Float: fPosX, Float: fPosY, Float: fPosZ, iTime) {
switch(GetPVarInt(iPlayer, "StreamPrep")) {
case 0: {
ShowNoticeGUIFrame(iPlayer, 4);
TogglePlayerControllable(iPlayer, false);
//GameTextForPlayer(iPlayer, "~w~Collecting position...", iTime * 2, 3);
SetPVarInt(iPlayer, "StreamPrep", 1);
SetTimerEx("Player_StreamPrep", iTime / 2, false, "ifffi", iPlayer, fPosX, fPosY, fPosZ, iTime);
}
case 1: {
if(GetPlayerState(iPlayer) == PLAYER_STATE_DRIVER)
SetVehiclePos(GetPlayerVehicleID(iPlayer), fPosX, fPosY, fPosZ + 2.0);
else
SetPlayerPosEx(iPlayer, fPosX, fPosY, fPosZ + 0.5);
//GameTextForPlayer(iPlayer, "~w~Streaming objects...", iTime * 2, 3);
SetPVarInt(iPlayer, "StreamPrep", 2);
SetTimerEx("Player_StreamPrep", iTime / 2, false, "ifffi", iPlayer, fPosX, fPosY, fPosZ, iTime);
}
default: {
//GameTextForPlayer(iPlayer, "~r~Loaded!", 1000, 3);
HideNoticeGUIFrame(iPlayer);
TogglePlayerControllable(iPlayer, true);
if(GetPlayerState(iPlayer) == PLAYER_STATE_DRIVER)
SetVehiclePos(GetPlayerVehicleID(iPlayer), fPosX, fPosY, fPosZ);
else
SetPlayerPosEx(iPlayer, fPosX, fPosY, fPosZ);
if(GetPVarType(iPlayer, "MedicCall")) {
ClearAnimations(iPlayer);
ApplyAnimation(iPlayer, "KNIFE", "KILL_Knife_Ped_Die", 4.0, 0, 1, 1, 1, 0, 1);
}
DeletePVar(iPlayer, "StreamPrep");
}
}
SetCameraBehindPlayer(iPlayer);
Streamer_UpdateEx(iPlayer, fPosX, fPosY, fPosZ);
}